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
[Caml-list] Maps & min/max key...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-08-31 (22:48)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: [Caml-list] Maps & min/max key...

I'm surprised the Map module doesn't expose something similar to
min_elt/max_elt in the Set module, as they're basically the same to

Could they be added? I have a problem that initially looked best
handled as a set, but turns out a map would be better, but I need to
get and also remove the minimum key =/