1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-06 14:56:54 +02:00

follow-up for #2768

This commit is contained in:
ven
2018-02-28 11:44:53 +01:00
committed by GitHub
parent 52a4a4ac95
commit 03b9fce5fa

View File

@@ -276,7 +276,8 @@ r foreach println
// NB: Scala is quite lenient when it comes to dots and brackets - study the
// rules separately. This helps write DSLs and APIs that read like English
// Why doesn't `println` need any parameters here? Stay tuned for Functional Programming below!
// Why doesn't `println` need any parameters here?
// Stay tuned for first-class functions in the Functional Programming section below!
(5 to 1 by -1) foreach (println)
// A while loop