fluent-traversable
fluent-traversable copied to clipboard
possible to do recursive mapping?
like traversing a data-tree? say objects with children properties.
You can use spl's RecursiveIteratorIterator as argument of FulentTraversable::create method, but the toArray output will be flat array.
Mapping over tree is this way, that result of mapping is a tree with changed leafs is not supported by this library.