query
On this page

range

lib.lists.range



Return a list of integers from first up to and including last.

Example

range 2 4
=> [ 2 3 4 ]
range 3 2
=> [ ]

Type

range :: int -> int -> [int]

Arguments

  • [first] First integer in the range
  • [last] Last integer in the range

Noogle also knows

Aliases