Good morning. Is the syntax <STRING> <BLO...
# arrow-meta
m
Good morning. Is the syntax <STRING> <BLOCK>
Copy code
"name" { /* ... */ }
like in https://github.com/arrow-kt/arrow-meta-examples/blob/master/hello-world/create-plugin/src/main/kotlin/io/arrowkt/example/HelloWorldPlugin.kt#L11 a standard Kotlin syntax or something that is added by ΛRROW Meta?
a
it’s done in Meta, but that’s something anyone can encode with an extension function
👍 1
m
Oh, it must be just an
operator fun <C, T> String.invoke(block : C.() -> T)
of some kind. I didn't think of that! 😄 Thanks!
👌 1
a
indeed! sorry i tried to send it as a message but slack was lazy 😓
m
No problem. The hint was enough. Thanks again.
👍 1