
4 Feb
2007
4 Feb
'07
7:41 a.m.
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@gmail.com