Class: Set
- Inherits:
-
Object
- Object
- Set
- Defined in:
- lib/sorted_containers/core_extensions.rb
Overview
Set class is being extended to include a method for converting a Set to a SortedSet.
Instance Method Summary collapse
-
#to_sorted_set(load_factor: SortedContainers::SortedArray::DEFAULT_LOAD_FACTOR) ⇒ SortedContainers::SortedSet
Converts the set to a SortedSet.
Instance Method Details
#to_sorted_set(load_factor: SortedContainers::SortedArray::DEFAULT_LOAD_FACTOR) ⇒ SortedContainers::SortedSet
Converts the set to a SortedSet.
53 54 55 |
# File 'lib/sorted_containers/core_extensions.rb', line 53 def to_sorted_set(load_factor: SortedContainers::SortedArray::DEFAULT_LOAD_FACTOR) SortedContainers::SortedSet.new(self, load_factor: load_factor) end |