Since the list routines are supplied by the generic roles defined in Doubly-linked_list/Definition#Rakuarrow-up-right, it suffices to say:
say $dll.list; say $dll.reverse;
These automatically return just the payloads, hiding the elements containing the forward and backward pointers.
Last updated 2 years ago