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

    Type Alias StateUnfolder<A, FoldState>

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

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

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

    Allows you to thread some state through the given tree.

    Type Parameters

    • A
    • FoldState