[Haskell-beginners] flatten comma operator

Kees Bleijenberg k.bleijenberg at inter.nl.net
Wed Jun 6 08:33:24 CEST 2012


In 'Real World Haskell' I found code like LiftA2 (,) ....
Looks odd. But after some experimenting in winghci I found that (,) 1 2 is
valid code and is equal to (1,2).
Now I wonder how to create (1,2,3).  I think you need a join or a flatten
function or ...? Join doesn't work?
 
Kees
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120606/d3d85468/attachment.htm>


More information about the Beginners mailing list