Skip to content

Instantly share code, notes, and snippets.

@ashawley
Created March 24, 2015 14:56
Show Gist options
  • Save ashawley/29c5cfb54206140a188a to your computer and use it in GitHub Desktop.
Save ashawley/29c5cfb54206140a188a to your computer and use it in GitHub Desktop.
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