MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / interleave

Function interleave

src/CollectionImpl.js:638–646  ·  view source on GitHub ↗
(/*...collections*/)

Source from the content-addressed store, hash-verified

636 },
637
638 interleave(/*...collections*/) {
639 const collections = [this].concat(arrCopy(arguments));
640 const zipped = zipWithFactory(this.toSeq(), IndexedSeq.of, collections);
641 const interleaved = zipped.flatten(true);
642 if (zipped.size) {
643 interleaved.size = zipped.size * collections.length;
644 }
645 return reify(this, interleaved);
646 },
647
648 keySeq() {
649 return Range(0, this.size);

Callers

nothing calls this directly

Calls 6

zipWithFactoryFunction · 0.90
reifyFunction · 0.90
arrCopyFunction · 0.85
flattenMethod · 0.80
concatMethod · 0.65
toSeqMethod · 0.65

Tested by

no test coverage detected