We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f6731 commit bac0f5eCopy full SHA for bac0f5e
src/main/scala/scala/collection/immutable/next/package.scala
@@ -24,6 +24,10 @@ package object next {
24
*
25
* Safe to call on unbounded input, but in that case the result is not a cycle
26
* (not even if the input was).
27
+ *
28
+ * Note that some `LazyList` methods preserve cyclicality and others do not.
29
+ * So for example the `tail` of a cycle is still a cycle, but `map` and `filter`
30
+ * on a cycle do not return cycles.
31
*/
32
def cycle: LazyList[T] =
33
// case 1: the input is already known to be empty
0 commit comments