scala:Count 0 to 9

From Progzoo
Jump to: navigation, search

for loop can be used to count 0 to 9.


[Font] [Default] [Show] [Resize] [History] [Profile]

for loop with yield can be used to create a Vector.


[Font] [Default] [Show] [Resize] [History] [Profile]