ClojureDocs

导航

名称空间

范围

clojure.core

自 1.0 起可用 (来源)
  • (range)
  • (range end)
  • (range start end)
  • (range 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.