> > As Haskell has the standard functions  fst, snd  to decompose  (a,b),
   > > maybe, it worths to provide also
   > >                           tuple31, tuple31, tuple31,
   > >                           ...
   > >                           tuple51, tuple52, tuple53, tuple54, tuple55
   > > 
   > > for the tuples of  n = 3,4,5 ?
   > 
   > Yes!  I often want fst3, snd3, thd3, at least.
   > 
   > I suggest calling them "pi13" or "prj13" rather than "tuple31", though.

I use them too, but I would prefer "pi1_3" or "prj1_3" 
so that we can keep the same convention for arbitrary length
(...for generated programs, of course)

and also,

     tuple3 a b c = (a,b,c)

I prefer "tuple3" than "(,,)" , I don't manage to understand how to use "," alone.

-- 
Bruno Barbier
Laboratoire d'Informatique de Besancon,  Universite de Franche-Comte,  France
Phone/Fax : (33) 381.666.459  / (33) 381.666.450
Mailto    : [EMAIL PROTECTED]


Reply via email to