Skip to content

Instantly share code, notes, and snippets.

@jsuereth
Created April 27, 2010 18:48
Show Gist options
  • Save jsuereth/381136 to your computer and use it in GitHub Desktop.
Save jsuereth/381136 to your computer and use it in GitHub Desktop.
Welcome to Scala version 2.8.0.r21454-b20100411185142 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_15).
Type in expressions to have them evaluated.
Type :help for more information.
scala> val x : Int => Unit = y => println(y)
x: (Int) => Unit = <function1>
scala> x(v1 = 2)
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment