Interposing and interleaving

Interposing means inserting the same value in-between every value in the indexed collection. Interleaving is like concatenation, except that the order of the resulting values is alternated between input lists based on the order of the collection arguments.

Get Mastering Immutable.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.