Created
January 31, 2015 07:32
-
-
Save shigemk2/fc5db98f2bf63d2891b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (i <- 1 to 10 if i % 2 == 0) println(i) | |
println("-----------") | |
for { | |
i <- 1 to 10 | |
if i % 2 == 0 | |
} println(i) | |
println("-----------") | |
for { | |
i <- 1 to 10 | |
if i > 3 | |
if i < 6 | |
if i % 2 == 0 | |
} println(i) | |
println("-----------") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment