Well, no. What you have is a function which accept...
# language-proposals
o
Well, no. What you have is a function which accepts a
List<Something>
. It only happens to destructure in lambda expressions. What I refer to as the callsite is where the function is called. I.e you have
f: (List<String>) -> Unit
, and you want to call it. You cannot simply do
f("a", "b", "c")
. It has to be
f(listOf("a", "b", "c"))
. This is what I refer to as the callsite