Skip to content

Commit 348737b

Browse files
authored
Update multiple-parameter-lists.md
Change print to println in the Partial Application subsection, so results appear immediately in e.g. ScalaFiddle
1 parent 601ce5d commit 348737b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_tour/multiple-parameter-lists.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ val numbers = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
7373
val numberFunc = numbers.foldLeft(List[Int]()) _
7474
7575
val squares = numberFunc((xs, x) => xs :+ x*x)
76-
print(squares) // List(1, 4, 9, 16, 25, 36, 49, 64, 81, 100)
76+
println(squares) // List(1, 4, 9, 16, 25, 36, 49, 64, 81, 100)
7777
7878
val cubes = numberFunc((xs, x) => xs :+ x*x*x)
79-
print(cubes) // List(1, 8, 27, 64, 125, 216, 343, 512, 729, 1000)
79+
println(cubes) // List(1, 8, 27, 64, 125, 216, 343, 512, 729, 1000)
8080
```

0 commit comments

Comments
 (0)