Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created January 7, 2012 03:00
Show Gist options
  • Save diegopacheco/1573622 to your computer and use it in GitHub Desktop.
Save diegopacheco/1573622 to your computer and use it in GitHub Desktop.
Scala Currying Functions
object CurryingFunctions {
def times(n:Int)(f: => Unit) = for(i <- 1 to n){ f }
def main(args: Array[String]) {
times(5){
println("Hey")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment