[Haskell-beginners] FoldL/R Reducing List

Daniel Fischer daniel.is.fischer at web.de
Mon Jun 22 07:41:18 EDT 2009


Am Montag 22 Juni 2009 13:10:08 schrieb Waaaggh:
> Hi.how can i reduce list with foldl.r ?
>
> np (1,1,1,2,3,3,4,5,5) -> (1,2,3,4,5) ???
> Azz.

First, these are tuples, not lists.
Second, what are you trying to do?
Implement nub via fold(l)r?
Is http://www.haskell.org/haskellwiki/Homework_help relevant to your request?


More information about the Beginners mailing list