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
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-03-06 (22:08)
From: Juergen Pfitzenmaier <pfitzen@i...>
Olivier Andrieu wanted to build a Set of functional values but had problems
with the comparison of these values.

One solution would be to have a Set of pairs. The first element would be a
functional value and the second something of a simple type (like integer).
Then you define your comparison function only to use this second element.
The only inconvenience is that you have always to select explicitly the first
element of such pairs to get the functional value; but you can hide this
inside a module build around Set.
hope this is of some help


To unsubscribe, mail  Archives: