@fgaudo/effect-tea - v0.7.2
    Preparing search index...

    Variable forEachConst

    forEach: {
        <Item, State, Command2, Event2>(
            items: Iterable<Item>,
            next: (item: Item) => (state: State) => Step<State, Command2, Event2>,
        ): <Command1, Event1>(
            step: Step<State, Command1, Event1>,
        ) => Step<State, Command1 | Command2, Event1 | Event2>;
        <State, Command1, Event1, Item, Command2, Event2>(
            step: Step<State, Command1, Event1>,
            items: Iterable<Item>,
            next: (item: Item) => (state: State) => Step<State, Command2, Event2>,
        ): Step<State, Command1 | Command2, Event1 | Event2>;
    } = ...

    A step followed by one more for each item, in order, each made from the state the previous one left: the andThen of many. E.g. a parent that tells each of its children by id the same thing, forEach({ state }, ids, (id) => children.Row.update(id, Cleared())). The state is the last one's, and the commands and the events are every step's, in order; its lists are always present. It is dual: forEach(items, next) takes the step last, for a chain of steps written with pipe.

    Type Declaration