
28 Aug
2006
28 Aug
'06
6:57 p.m.
On 8/28/06, John Hughes
As for an example of fmap causing trouble, recall the code I posted last week sometime:
class Foldable f where fold :: (a -> a -> a) -> a -> f a -> a
I'd call this a case of "Foldable" causing trouble. :) Fold is
somewhat specific to the structure of the underlying collection (hence
the numerous fold* functions), map is not.
--
Taral