| Start |
|---|
| Traversing a structure in reverse A traversal can be run in the opposite direction with the help of the
The |
Definition of Traversable
|
| An instance of Traversable for a binary tree Implementations of This implementation performs an in-order traversal (opens new window) of the tree. The |
Instantiating Functor and Foldable for a Traversable structure Every
|
| Traversable structures as shapes with contents If a type where the "contents" are the same as what you'd "visit" using a Going one direction, from but going back uses the The
|
| Transforming a Traversable structure with the aid of an accumulating parameter The two These functions generalise For example,
|
| Transposing a list of lists Noting that and the similarity between the types of the idea is to use
Now we get |
Read Article
https://develop.horje.com/learn/1434/reference