Last active
February 27, 2020 05:25
-
-
Save kmizu/f1ce1f052d5788fe6a752461ca6a53f8 to your computer and use it in GitHub Desktop.
A
This file contains hidden or 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
def mul(x, y) = x _*_ y | |
mul( | |
[1 2 3], | |
[4 | |
5 | |
6]) // 32 |
This file contains hidden or 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
mutable i = 0 | |
save c; | |
val result = if(i < 10) { | |
i = i + 1 | |
continue c | |
} else { | |
i | |
} | |
println(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment