https://kotlinlang.org logo
#announcements
Title
# announcements
i

iex

11/30/2019, 12:11 PM
Hi! Is there a lang feature request somewhere for currying (out of the box)?
k

Kroppeb

11/30/2019, 12:38 PM
i

iex

11/30/2019, 10:43 PM
ah cool. It requires more boilerplate. But yeah it can be abstracted
it would be great if this could be applied to "plain" functions/methods though, not only lambdas. Maybe it's possible?
k

Kroppeb

11/30/2019, 10:50 PM
Idk if it works on functions but I'd assume you can.
(::functionName).curried()
i

iex

11/30/2019, 11:13 PM
ahh right. What's the name of this
::
operator again?
the exact function I assume is to convert the methods to lambdas?
k

Kroppeb

11/30/2019, 11:22 PM
It’s a function reference
m

Matteo Mirk

12/02/2019, 2:12 PM
10 Views