effect-tree - v1.0.36
    Preparing search index...

    Type Alias StateUnfold<A, FoldState>

    StateUnfold: TreeUnfold<[A, FoldState], [Tree<A>, FoldState]>

    An unfold where the types are tupled with some state FoldState. A function of the type

    StateUnfold<A, FoldState> = (pair: [Tree<A>, FoldState]) => Tree<[A, FoldState]>
    

    Allows you to thread some state through the given tree.

    Type Parameters

    • A
    • FoldState