Question: what is t in kotlin?
Answer: T. () -> Unit is an extension function type with receiver. Besides ordinary functions, Kotlin supports extension functions. ... So it's a generic function for T and R , with first argument "receiver" of type T and second, f of extension function type, which extends T , returning type R which in turn returned by the with .