What about tuple accessor function for (,,) ... ?

Ashley Yakeley ashley at semantic.org
Thu Apr 26 19:07:35 EDT 2007

Neil Mitchell wrote:

> I suspect the use of the 2 element tuple is really common, the 3
> element tuple sees a few outings, and the 4 and above element tuple is
> a bit of a rarity.

Right. I suspect the biggest use of the longer tuples is beginners doing 

   data MyType = MyType (Int,Int,Char,Bool,Int)

instead of this:

   data MyType = MyType Int Int Char Bool Int

Ashley Yakeley

More information about the Libraries mailing list