[Haskell-beginners] flatten comma operator
a at unnali.com
Wed Jun 6 08:36:28 CEST 2012
If (,) is a function that takes two elements and returns the 2-tuple, have you considered something like (,,)? :)
On Wednesday, 6 June 2012 at 4:33 PM, Kees Bleijenberg wrote:
> 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?
> Beginners mailing list
> Beginners at haskell.org (mailto:Beginners at haskell.org)
More information about the Beginners