patrickdelconte
07/12/2020, 12:18 PMcollection.map { it.unsafeCast<SomeExternalInterface> }
which is undestood by the compiler and transpiled efficiently? It is something that comes up from time to time when interacting with js libs and last time I checked the resulting code was a for loop instead of a no-opturansky
07/12/2020, 12:59 PMinline fun <T, R: T> List<T>.unsafeMap(): List<R> {
unsafeCast<List<R>>()
}