functional-data-structure/finger-tree

View on GitHub
src/0-core/_fast/_append.js

Summary

Maintainability
A
0 mins
Test Coverage
export function _append(tree, list) {
    const n = list.length;

    for (let i = 0; i < n; ++i) tree = tree.push(list[i]);

    return tree;
}