Skip to content

Commit 7bff469

Browse files
committed
add: implement concat
1 parent 29321f8 commit 7bff469

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/immutable_sequence.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@
152152
return new ImmutableSequence(this.tree_.removeLast());
153153
};
154154

155+
/**
156+
* Concatenate the sequence with another one.
157+
* @param {ImmutableSequence} other
158+
* @return {ImmutableSequence}
159+
*/
160+
ImmutableSequence.prototype.concat = function (other) {
161+
return new ImmutableSequence(this.tree_.concat(other.tree_));
162+
};
163+
155164
/**
156165
* Split into two sequences at the given index.
157166
* @param {number} i

0 commit comments

Comments
 (0)