I have a function `run` on `MatrixStack` so define...
# getting-started
e
I have a function
run
on
MatrixStack
so defined:
Copy code
inline infix fun run(block: MatrixStack.() -> Any): MatrixStack {
        push()
        block()
        pop()
        return this
}
if I write:
Copy code
stack.run {
            translate(camTarget)
}
it works, but if I exploit the
infix
option
Copy code
stack.run {
            translate camTarget    // error
}
none of the following functions can be called..