caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] polymorphic sets?
@ 2015-09-29 12:43 Sébastien Hinderer
  2015-09-29 12:58 ` Gabriel Scherer
  0 siblings, 1 reply; 6+ messages in thread
From: Sébastien Hinderer @ 2015-09-29 12:43 UTC (permalink / raw)
  To: caml-list

Dear all,

Is it possible to implement a polymorphic sets module over the Set
module provided in OCaml's standard library?

By polymorphic set, I mean a set whose elements could be of type 'a
(like for lists) and the equality funciton would be the one provided by
OCaml.

So one would have for instance

val add : 'a -> 'a t -> 'a t

etc.

Is that possible somehow?

Thanks!

Sébastien.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-29 15:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-29 12:43 [Caml-list] polymorphic sets? Sébastien Hinderer
2015-09-29 12:58 ` Gabriel Scherer
2015-09-29 13:35   ` Simon Cruanes
2015-09-29 13:56   ` Jesper Louis Andersen
2015-09-29 14:52     ` Yaron Minsky
2015-09-29 15:13       ` Gabriel Scherer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).