Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

range function:

Create a new list with items from 0 to the second argument. If the second argument is not a positive integer, return nothing. Be careful not to use large numbers.

Examples:

  • running: (range 4) will give: [0, 1, 2, 3]

  • running: (range -4) will return nothing

  • running: (range [1, 2, 3, 4]) will return nothing