https://kotlinlang.org logo
m

Miguel Vargas

03/25/2020, 10:59 PM
Looking in the flow builder I was confused by the type signature of the block param
Copy code
suspend FlowCollector<T>.() -> Unit
In general what is the meaning of Type.()?
m

Miguel Vargas

03/25/2020, 11:15 PM
Is it an extension function?
s

streetsofboston

03/26/2020, 2:03 AM
Kinda like that, yes. Instead of an extension function , this is like an extension lambda.
👍 1
3 Views