Join Slack
Powered by
Looking in the flow builder I was confused by the ...
# announcements
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.()?
l
louiscad
03/25/2020, 11:10 PM
https://kotlinlang.org/docs/reference/lambdas.html#function-literals-with-receiver
👍 1
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
Open in Slack
Previous
Next