Join Slack
Communities
Powered by
Is there any way to make a function that I can pas...
# announcements
a
Angus
06/22/2018, 1:37 PM
Is there any way to make a function that I can pass as a function-with-receiver? I'm in the situation of wanting to reuse a block, but can't work out what the syntax would be to make a function that could do the same role as a receiver lambda
d
diesieben07
06/22/2018, 1:39 PM
(T) -> U
and
T.() -> U
are interchangable.
a
Angus
06/22/2018, 1:45 PM
Ah nice and simple, thanks!
Open in Slack
Previous
Next