Both of these interfaces define only one method
public operator fun iterator(): Iterator<T>
Documentation says Sequence
is meant to be lazy. But isn't Iterable
lazy too (unless backed by a Collection
)?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…