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

    Function insertAllAt

    Insert a list of trees before Nth child of the given tree. The list is inserted so that the head element of the inserted list becomes the Nth child of the tree, and the previous Nth child is pushed after the inserted list.

    Negative indexes are handled as offsets from the final tree in the forest so that inserting a list to index -1 inserts the list before the last tree of the forest. Use appendAll to append after the last tree in the forest.

    If self is a leaf, it is converted into a branch.

    If the index is out-of-bounds, I.E.: negative or greater than `forest length

    • 1`, the list is appended to the end of the forest.

    Tree underlying type.

    The tree to modify.

    Non-empty list of child trees to insert.

    A new updated tree with the new child trees inserted.