partially applied function

dmike

Bekanntes Mitglied
Kurze Frage:

def test(a:Int)(b:Int) = a + b

Erlaubt:

test(1)(2)
test(1)(_)
test(1)_

Warum sind diese Fälle aber nicht erlaubt?

test (_)(2)
test _(2)
 

Neue Themen


Oben