
26 Apr
2012
26 Apr
'12
3:52 p.m.
* Tillmann Rendel
Hi,
Sjoerd Visscher wrote:
Just as there's a Foldable class, there should also be an Unfoldable class. This package provides one:
class Unfoldable t where unfold :: Unfolder f => f a -> f (t a)
Just to be sure: That's not a generalization of Data.List.unfoldr, or is it somehow?
It seems to be -- see https://github.com/sjoerdvisscher/unfoldable/blob/master/src/Data/Unfoldable... (although that is much more complicated than Data.List.unfoldr) -- Roman I. Cheplyaka :: http://ro-che.info/