An unfold where the types are tupled with some state FoldState. A function of the type
FoldState
StateUnfold<A, FoldState> = (pair: [Tree<A>, FoldState]) => Tree<[A, FoldState]> Copy
StateUnfold<A, FoldState> = (pair: [Tree<A>, FoldState]) => Tree<[A, FoldState]>
Allows you to thread some state through the given tree.
An unfold where the types are tupled with some state
FoldState. A function of the typeAllows you to thread some state through the given tree.