For method
def f(a: String, b: String) = ???
I want to get both a partially applied function (with the first argument, and with the second).
I wrote the following code:
def fst = f _ curried "a"
def snd = (s: String) => (f _ curried)(s)("b")
Is there a better way?
[update] snd can be written shorter def snd = (f _ curried)((_: String))("b")
source
share