Created
October 21, 2013 13:04
-
-
Save Arakaki/7083528 to your computer and use it in GitHub Desktop.
pertial function
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
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