class Hamster::SortedSet

def values_at(*indices)

Returns:
  • (SortedSet) -

Parameters:
  • indices (Array) -- The indices to retrieve and gather into a new `SortedSet`
def values_at(*indices)
  indices.select! { |i| i >= -@node.size && i < @node.size }
  self.class.new(indices.map! { |i| at(i) })
end