Grows the tree at its leaves.
Given a function of type (a: A) ⇒ Tree<A> replacing a value of type A with a Tree<A>, grow the tree by running all leaves through this function, replacing the leaves with the function results.
(a: A) ⇒ Tree<A>
A
Tree<A>
Grows the tree at its leaves.
Given a function of type
(a: A) ⇒ Tree<A>replacing a value of typeAwith aTree<A>, grow the tree by running all leaves through this function, replacing the leaves with the function results.