tuple sections?

Glynn Clements glynn.clements at virgin.net
Sat Oct 11 01:26:31 EDT 2003


John Meacham wrote:

> I vaugly remember using tuple sections at some point, but perhaps I was
> dreaming because they don't seem to actually exist.
> I mean something like
> (,3) meaning \x -> (x,3)
> (4,,,3) meaning \x y -> (4,x,y,3)
> 
> were these supported at one point?

I don't know for sure, but they don't work in any of the versions of
GHC or Hugs which I have. Perhaps you are getting confused with:

	(,)	meaning	\x y -> (x, y)
	(,,)	meaning	\x y z -> (x, y, z)

etc, which do work.

-- 
Glynn Clements <glynn.clements at virgin.net>


More information about the Haskell-Cafe mailing list