[erlang-questions] working with sets

Ulf Wiger <>
Fri Jan 4 12:42:04 CET 2008


Have you looked at the sofs module in stdlib?

http://www.erlang.org/doc/man/sofs.html

sofs = "sets of sets".

Just understanding the man page for sofs is a bit of a
challenge, though.  (:

BR,
Ulf W

2008/1/3, Vance Shipley <>:
> Can one of you CS wizzes point me at the best way to
> maintain a set of sets where all elements of all sets
> must be unique?  I don't need a really big data set
> but rolling my own with the list module feels wrong.
>
> For example {{1,2,3},{4,5,6},{7,8,9}} is a valid set.
> Trying to enter {9,10,11} should fail.
>
>         -Vance
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list