
15 Apr
2015
15 Apr
'15
12:50 p.m.
+ is a function of two arguments, and applying via (*) against a list would
apply each item as first argument of plus
Doing
pure (+) <*> [1,2,3] <*> [4,5,6]
would work.
What are you trying to achieve?
15 квіт. 2015 15:48 "Shishir Srivastava"
hi,
I am trying to naively print an applicative functor using 'show' like this -
show (pure (+) <*> [1, 2, 3])
I know there is something fundamentally wrong with that expression but not sure what.
Can anyone please point it out.
Thanks, Shishir
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners