> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/perl6-rosettacode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/perl6-rosettacode/programming_tasks/d/doubly-linked-list/traversal.md).

# Traversal

Since the list routines are supplied by the generic roles defined in [Doubly-linked\_list/Definition#Raku](https://rosettacode.org/wiki/Doubly-linked_list/Definition#Raku), it suffices to say:

```perl
say $dll.list;
say $dll.reverse;
```

These automatically return just the payloads, hiding the elements containing the forward and backward pointers.
