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/
- Re: Zipping two sequences together with only cons, empt... Kevin Atkinson
- Re: Zipping two sequences together with only cons,... Laszlo Nemeth
- Re: Zipping two sequences together with only cons,... Kevin Atkinson
- Re: Zipping two sequences together with only cons,... Lennart Augustsson
- Re: Zipping two sequences together with only cons,... Kevin Atkinson
- Re: Zipping two sequences together with only cons,... Valery Trifonov
- Re: Zipping two sequences together with only cons,... Kevin Atkinson
- Re: Zipping two sequences together with only cons,... Lennart Augustsson
- Re: Zipping two sequences together with only cons,... Kevin Atkinson
- Re: Zipping two sequences together with only cons,... Lennart Augustsson
- Re: Zipping two sequences together with only cons,... Kevin Atkinson