4 ms·
Reminds me of zip, zip3, zip4, etc. in Haskell.
by imurray 15y ago
Reminds me of zip, zip3, zip4, etc. in Haskell.
- ams6110 15y agoErlang as well, though they don't go to 4 IIRC. A pragmatic compromise of providing a simpler interface for common use cases.
- nemetroid 15y agoHaskell actually goes all the way up to zip7. A generalised zipn function is quite complicated to write in Haskell, due to the type system. Here's a blog post about it: http://paczesiowa.blogspot.com/2010/03/generalized-zipwithn.html http://paczesiowa.blogspot.com/2010/03/generalized-zipwithn....