Created
September 3, 2011 15:34
-
-
Save tototoshi/1191354 to your computer and use it in GitHub Desktop.
名前渡し
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 repeat(n: Int)(f: => Unit) { | |
for (i <- 0 until n) { | |
f | |
} | |
} | |
repeat(3){ | |
println("Hello") | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment