Method: Immutable::SortedSet#below
- Defined in:
- lib/immutable/sorted_set.rb
#below(item) ⇒ SortedSet #below(item) {|item| ... } ⇒ nil
Select elements less than a value.
788 789 790 791 792 793 794 |
# File 'lib/immutable/sorted_set.rb', line 788 def below(item, &block) if block_given? @node.each_less(item, false, &block) else self.class.alloc(@node.prefix(item, false)) end end |