[Haskell-cafe] Why is there no Zippable class? Would this work?
Jules Bean
jules at jellybean.co.uk
Fri Jul 17 07:26:04 EDT 2009
Job Vranish wrote:
> I was needing a way to zip generic data structures together today and
> was very annoyed to find that there is no Zippable class, or variant
> there of.
>
Notice that you can always do this if the LHS is traversable and the RHS
is Foldable (as a special case the RHS is the same as the LHS, since all
foldables are traversable) :
http://www.haskell.org/haskellwiki/Foldable_and_Traversable#Generalising_zipWith
More information about the Haskell-Cafe
mailing list