Const
The simplest unfold: unfold a tree as long as the given function of type (parent: A) ⇒ A[] keeps producing new child nodes.
(parent: A) ⇒ A[]
The simplest unfold: unfold a tree as long as the given function of type
(parent: A) ⇒ A[]keeps producing new child nodes.