评论由: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.
可能更准确的说法是:
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.
可能有具体条款。
返回从起始值(包含)到结束值
(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.
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.
可能有具体条款。
可能有具体条款。