Am I missing an obvious way to do something like: ...
# eap
e
Am I missing an obvious way to do something like:
Copy code
<Context, Return> context(Context) operator fun ((Context) -> (Return)).invoke() = ...
Or is it safe to assume there this will never be possible? ;(
i
Declare generic parameters of a contextual function the same way as of a plain function, i.e. after the
fun
keyword:
Copy code
context(Context) 
fun <Context> foo() ...
👍 1