Skip to content

Instantly share code, notes, and snippets.

@Arakaki
Created October 21, 2013 13:04
Show Gist options
  • Save Arakaki/7083528 to your computer and use it in GitHub Desktop.
Save Arakaki/7083528 to your computer and use it in GitHub Desktop.
pertial function
object Main {
def main(args:Array[String]) {
def addNumbers(x:Int)(y:Int)= x + y
val addNumber = addNumbers(2)_
val value = addNumber(2)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment