1 define: #SortedSet &parents: {SortedArray. NoDuplicatesCollection}.
3 s@(SortedSet traits) new
4 [#new sendTo: {s} through: {SortedArray}].
7 [(SortedSet newSizeOf: s) `>> [addAll: s. ]].
9 s@(Set traits) sortBy: block
10 [(SortedSet newSizeOf: s) `>> [sortBlock := block. addAll: s. ]].
12 sc@(SortedSet traits) add: obj
15 ifFalse: [sc at: (sc indexForInserting: obj) insert: obj].