within a kotlin lambda, how does a string accept a lambda?
In gradle-kotlin-dsl... this is valid code
tasks {
"build" {
// inner lambda code here
How can it work that a string can accept a lambda parameter, or else how is this syntax working? The string "build" seems to one of a list of strings that substitute for function calls?
Something in the applicable class definition must set up this behaviour, but I cannot think how that is done.
The way this works could be a technique that has other uses, but to evaluate that, it is necessary...