diff options
Diffstat (limited to 'test/files/run/stream_length.scala')
-rw-r--r-- | test/files/run/stream_length.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/stream_length.scala b/test/files/run/stream_length.scala index 68e9cad5ac..2808fbc495 100644 --- a/test/files/run/stream_length.scala +++ b/test/files/run/stream_length.scala @@ -5,7 +5,7 @@ object Test { if (depth == 0) Stream(bias) else { - Stream.concat(Stream.range(1, 100).map((x: Int) => walk(depth-1, bias + x))) + (Stream.iterate(1, 99)(_+1).map((x: Int) => walk(depth-1, bias + x))).flatten } } |