Returns the concatentation of x with itself. If input is an iterable, it MUST be finite!
x
Also see the duplicate transducer for achieving a different kind of value duplication.
dup("hello"); // "hellohello" dup([1, 2, 3]); // [1, 2, 3, 1, 2, 3] dup(range(3)); // IterableIterator<number>
-
Generated using TypeDoc
Returns the concatentation of
x
with itself. If input is an iterable, it MUST be finite!Also see the duplicate transducer for achieving a different kind of value duplication.
dup("hello"); // "hellohello" dup([1, 2, 3]); // [1, 2, 3, 1, 2, 3] dup(range(3)); // IterableIterator<number>