I was wondering, how do you choose whether to take...
# announcements
c
I was wondering, how do you choose whether to take receiver function as an argument or not? because I see a lot of both
fun foo(arg: T.() -> R)
and
fun bar(arg: (T) -> R)
and I'm not sure why one was chosen instead of another