openbsd-ports/devel/ruby-sorted_set/pkg/DESCR
kmos 88a4c6ac47 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.

ruby-sorted_set is functionality spun out from the Set included with
Ruby in 3.x

feedback and ok jeremy@
2022-06-22 01:37:23 +00:00

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.