
30 Apr
2009
30 Apr
'09
8:12 a.m.
On Apr 29, 2009, at 16:12 , Ben Sanders wrote:
How about map pure. I do like the robot monkey though :)
What is 'map pure'?
It uses the applicative functor (Control.Applicative) instance for lists, just as "fmap return" uses the monad instance. Both work out to the same thing. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH