Re:2 is a code smell
by imurray on Wednesday October 12, 2011 @11:44AM
(#3103330)
Reminds me of zip, zip3, zip4, etc. in Haskell.
[ Parent
| on HN ]
Erlang as well, though they don't go to 4 IIRC. A pragmatic compromise of providing a simpler interface for common use cases.
Haskell 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....