Ok you haskell experts.  I have an interesting challenge (or maybe just
a question if you have seen it before).

Is it possible to zip two sequences together with just:

cons   :: a -> c a -> c a
empty  :: c
foldr  :: (a -> b -> b) -> b -> c a -> b

And if so how would one do so.

Remember you may ONLY use the three functions given above and NOTHING
else.  Creating a list with "foldr (:) []" is also not allowed.

-- 
Kevin Atkinson
[EMAIL PROTECTED]
http://metalab.unc.edu/kevina/


Reply via email to