Paramorphisms / Data.Scanable?
Bulat Ziganshin
bulat.ziganshin at gmail.com
Sun Feb 4 07:41:44 EST 2007
Hello Jim,
Sunday, February 4, 2007, 7:36:13 AM, you wrote:
> class Scannable t where
> scanr :: (a -> b -> b) -> b -> t a -> t b
> scanl :: (a -> b -> a) -> a -> t b -> t a
> scanr1 :: (a -> a -> a) -> t a -> t a
> scanl1 :: (a -> a -> a) -> t a -> t a
for me it seems that these operations are generalization of fmap and
fmap can be implemented via scnal/scanr
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Libraries
mailing list