Lucas Ł
06/27/2018, 12:26 PMUnit
.
So basically the only way that I can see it being callable, would be an extension to `Unit`:
fun foo(){}
fun Unit.bar(){}
and calling it
foo().bar()
I'm more interested in the reason... what exactly are you trying to accomplish? 😂
----
Nevermind, I just realized you can call fun ((String)->Unit).bar(){}
like so:
val foo: ((String)->Unit) = {}
foo.bar()