
22 Jun
2009
22 Jun
'09
4:27 p.m.
On Mon, Jun 22, 2009 at 2:12 PM, Waaaggh
i am trying to implement remowal of repetting elements from lists with fold eg. [1,1,1,2] -> [1,2] [1,1,2,2,3,1,1,1] -> [1,2,3,1]
It's pretty easy to do with foldr and a "variant" of cons (:), it's a little bit more tricky to do it with proper lazyness but nothing serious. -- Jedaï