Scala Tutorialsを読む 19 Loops without loops
Scala Tutorialsを読む 19 Loops without loops
http://scalatutorials.com/tour/interactive_tour_of_scala_loops_without_loops.html
19 ループのないループ
The "Scala" way (or Functional way) of performing a sum of numbers.
数値の合計の計算のScalaの方法 (もしくは関数的な方法)です。
Many programming tasks can be written in Scala using similar concepts without the use
多くのプログラミングのタスクは明示的なwhileループを使わずにScalaのやり方で書けるでしょう。