Range creates a lazy sequence that generates all the Numbers in the given interval; take asks the sequence 10 times for the next element.
range创建了一个lazy sequence,这个lazy sequence会预生成好指定范围内的10个数。然后,take会请求10次sequence来获取生成的数。
In this document, however, a range is an abstract interval which subtends the numeric set.
不过在这个文档中,范围指的是一个抽象区间,它包含了数字集合。
What are the differences between segment trees, interval trees, binary indexed trees and range trees?
之间的差异的时间间隔段树,是什么树,二叉树和范围的树木?
应用推荐