Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scala> def foo()() = 5
- foo: ()()Int
- scala> foo
- res0: Int = 5
- scala> foo()
- res1: Int = 5
- scala> foo()()
- res2: Int = 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement