I see… so is there any performance difference betw...
# announcements
d
I see… so is there any performance difference between this syntax:
Copy code
private fun <T, R> transform(pos: Int, item: T): R = item as R
public fun <T, R> doSomething(items: Collection<T>, trans: (Int, T) -> R = ::transform)
and this:
public fun <T, R> doSomething(items: Collection<T>, trans: (Int, T) -> R = { pos, item -> item as T })
?