[Haskell-cafe] zip3, zip4 ... -> zipn?

Frank Buss fb at frank-buss.de
Sat Aug 11 03:58:05 EDT 2007

Is it possible to write a function like this:

zipn n list_1 list_2 list_3 ... list_n

which implements zip3 for n=3, zip4 for n=4 etc.? Looks like variable number
of arguments are possible, like printf shows, so a general zipn should be
possible, too. If it is possible, why there are functions like zip5 and not
just zipn?

Frank Buss, fb at frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de

More information about the Haskell-Cafe mailing list