8.16.0.4
2 Scapegoat Tree Sets
(require scapegoat-tree/set) | package: scapegoat-tree |
A set type, implemented using the gen:set interface on top of scapegoat tree dicts.
2.1 Set Interface
procedure
(scapegoat-set? obj) → boolean?
obj : any/c
Tests if an object is a scapegoat set or not.
procedure
(make-scapegoat-set [ order] #:contract contract?) → scapegoat-set? order : order? = datum-order contract? : (order-domain-contract order)
Returns a new empty set using the optional order object and contract.
procedure
(scapegoat-set-contract ss) → contract?
ss : scapegoat-set?
Returns the contract used on values stored in the set.
All other operations on scapegoat sets should use the generic set interface functions for now.