Created
March 24, 2015 14:56
-
-
Save ashawley/29c5cfb54206140a188a 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
def runSecondThenFirst(first: => Unit)(second: => Unit) = { | |
second; | |
first | |
} | |
runSecondThenFirst { | |
println("First") | |
} { | |
println("Second") | |
} | |
// Second | |
// First |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment