Skip to content

clojure.core/range

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 5 Runnable: 4
([] [end] [start end] [start end step])

Returns a lazy seq of nums from start (inclusive) to end (exclusive), by step, where start defaults to 0, step to 1, and end to infinity. When step is equal to 0, returns an infinite sequence of start. When start is equal to end, returns empty list.

Examples

by nipra on
by pkolloch on
by rebcabin on . May have evaluation errors.
by mars0i on
by st-keller on

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.