kotlin.sequences.Sequence
Sequence
interface Sequence<out T>
A sequence that returns values through its iterator. The values are evaluated lazily, and the sequence is potentially infinite.
Sequences can be iterated multiple times, however some sequence implementations might constrain themselves to be iterated only once. That is mentioned specifically in their documentation (e.g. generateSequence overload). The latter sequences throw an exception on an attempt to iterate them the second time.
Sequence operations, like 登录查看完整内容