summaryrefslogtreecommitdiff
path: root/test/files/run/streams.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/streams.scala')
-rw-r--r--test/files/run/streams.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/run/streams.scala b/test/files/run/streams.scala
index 408affe306..1844fdb6ab 100644
--- a/test/files/run/streams.scala
+++ b/test/files/run/streams.scala
@@ -22,8 +22,11 @@ object Test extends Application {
println(s2.dropWhile(_ > 0))
println
+ val s3 = Stream.range(1, 100000)
+ println(s3.length)
+
// ticket #153
def powers(x: Int) = if ((x&(x-1)) == 0) Some(x) else None
- val s3 = Stream.range(1, 100000)
println(s3.flatMap(powers).reverse.head)
+
}