CCSet.Make
Safe version of find_first
.
find_first_map f s
find the minimum element x
of s
such that f x = Some y
and return Some y
. Otherwise returns None
.
find_last_map f s
find the maximum element x
of s
such that f x = Some y
and return Some y
. Otherwise returns None
.
Print the set in a string