Seq.prototype.split = function (predicate) {
        const [left, right] = this.tree.split(predicate);
        return [new Seq(left), new Seq(right)];
    };