module Hamster

def interval(from, to)

Other tags:
    Api: - public

Returns:
  • (Hamster::List) -

Parameters:
  • to (Integer) -- End value, inclusive
  • from (Integer) -- Start value, inclusive
def interval(from, to)
  return EmptyList if from > to
  interval_exclusive(from, to.next)
end