es-toolkit icon indicating copy to clipboard operation
es-toolkit copied to clipboard

feature: iterator chain / concatenation

Open keturn opened this issue 1 year ago • 1 comments

Python calls it itertools.chain:

chain("ABC", [1, 2, 3]).toArray() === ["A", "B", "C", 1, 2, 3]

Like Array.concat, but lazy, and doesn't need its iterables to be marked with Symbol.isConcatSpreadable.

(does the toolkit not have an Iterator Utilities section yet?)

keturn avatar Oct 27 '24 20:10 keturn