prelude-ls icon indicating copy to clipboard operation
prelude-ls copied to clipboard

Add an interlace function

Open charypar opened this issue 10 years ago • 0 comments

Works almost exactly like zip, except it can takes lists of different lengths:

interlace [1, 2, 3], ['a', 'b'] # => [1, 'a', 2, 'b', 3]

I'm not entirely sure about the order of arguments, it may make more sense to put shorter first, although I can't really see the curried form used much.

charypar avatar Sep 22 '14 12:09 charypar