Logo

Programming-Idioms

History of Idiom 2 > diff from v26 to v27

Edit summary for version 27 by :
New Scala implementation by user [meshelton]

Version 26

2016-02-16, 16:26:30

Version 27

2016-02-16, 21:29:53

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Code
(0 until 10).foreach( _ => println("Hello"))