Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 =/