query
On this page

range

lib.lists.range

Docs pulled from | This Revision | 21 minutes ago


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

Inputs

first

First integer in the range

last

Last integer in the range

Type

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

Examples

lib.lists.range usage example

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

Noogle also knows

Aliases