is it possible to have `inline fun <T, R> bi...
# getting-started
e
is it possible to have
inline fun <T, R> binding(pair: Pair<Int, Int>, block: T.() -> R) {
where
T
is decided based on
pair.second
?
u
inline fun <reified T, R> binding(pair: Pair<Int, T>, block: T.() ->R) { here T is not erased } Or you wanted something else
e
How can I cast then
T
?
u
What do you actually want to do with T? Can you show your goal?
u