package grenier
Module Physh.SetSource
Sets of objects, compared by physical equality.
A mutable set of elements of type 'a.
create () returns a new, empty set. It does not allocate any storage until the first element is added: empty sets are cheap.
add_if_new t x adds x to t and returns true if x was already present (in which case t is unchanged). This is the "visited" test of a traversal, in a single lookup.
reset t removes all elements of t and releases its storage: t is then as cheap as a new set.
iter f t applies f to each element of t, in an unspecified order. f can look up t; if it modifies t, it is unspecified whether the added (or removed) elements are visited.