mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
follow-up for #2768
This commit is contained in:
parent
52a4a4ac95
commit
03b9fce5fa
@ -276,7 +276,8 @@ r foreach println
|
|||||||
// NB: Scala is quite lenient when it comes to dots and brackets - study the
|
// 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
|
// 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)
|
(5 to 1 by -1) foreach (println)
|
||||||
|
|
||||||
// A while loop
|
// A while loop
|
||||||
|
Loading…
Reference in New Issue
Block a user