Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scala> def foo(a: Int)(b: Int) = a + b
- foo: (a: Int)(b: Int)Int
- scala> val foo2 = foo(5)_
- foo2: Int => Int = <function1>
- scala> foo2(10)
- res0: Int = 15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement