88a4c6ac47
order (according to the return values of their <=> methods) when iterating over them. Every element in SortedSet must be mutually comparable to every other: comparison with <=> must not return nil for any pair of elements. Otherwise ArgumentError will be raised. ruby-sorted_set is functionality spun out from the Set included with Ruby in 3.x feedback and ok jeremy@
11 lines
426 B
Plaintext
11 lines
426 B
Plaintext
SortedSet implements a Set whose elements are sorted in ascending
|
|
order (according to the return values of their <=> methods) when
|
|
iterating over them.
|
|
|
|
Every element in SortedSet must be mutually comparable to every
|
|
other: comparison with <=> must not return nil for any pair of
|
|
elements. Otherwise ArgumentError will be raised.
|
|
|
|
Currently this library does nothing for JRuby, as it has its own
|
|
version of Set and SortedSet.
|