Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
Difference: Unit and () in Scala
Asked
Mar 17 '14 at 10:54
Active
Mar 17 '14 at 11:03
Viewed
51 times
1
I wonder, what's the difference between
def foo(f: () => Int)
and
def foo(f: Unit => Int)
?
scala
asked Mar 17 '14 at 10:54
Incerteza
32,326
47
154
261
0 Answers
0