English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Re: OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-08 (13:43)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: OCaml's Cathedral & Bazaar (was Re: [Caml-list] Completeness of "Unix" run-time library)
From: Andreas Rossberg <rossberg@ps.uni-sb.de>

> >> there is good practical reason that map, fold, etc take the 
> >> container as their last argument. ;-)
> > 
> > Except that the folds in Hashtbl, Map.S and Set.S have the container in 
> > the second position (as does List.fold_right).
> Which I consider a design error indeed. :-)

open MoreLabels

(Sorry, but sometimes I want to remind people that parameter order is
not really relevant)

To be precise with labels you have:
* the container is the first unlabelled argument
* it can be in the last position simultaneously

  Jacques Garrigue

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners