class Hamster::SortedSet

def up_to(item, &block)

Parameters:
  • item (Object) --

Returns:
  • (nil) -
  • (SortedSet) -

Other tags:
    Yield: - Once for each item less than or equal to `item`, in order

Overloads:
  • up_to(item)
  • up_to(item)
def up_to(item, &block)
  if block_given?
    @node.each_less(item, true, &block)
  else
    self.class.alloc(@node.prefix(item, true))
  end
end