由:jafingerhut 评论
Clojure 1.6中,如果修改文档字符串的最后两行可能会更准确。range的当前文档字符串为
从起始值(包含)到结束值(不包含)返回一个延迟序列的数字
(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.
可能更准确的说法是
从起始值(包含)到结束值(不包含)返回一个延迟序列的数字
(exclusive), by step, where start defaults to 0, step to 1, and end to infinity.
infinity. When start is equal to end, returns empty list. When step is equal to 0
and start and end differ, returns an infinite sequence of start.