withScope

fun <T : Any> withScope(scope: Scope?, init: (scope: Scope?) -> T): T

This function can be used to execute multiple statements contained in init in the scope of scope. The specified scope will be selected using jumpTo. The last expression in init will also be used as a return value of this function. This can be useful, if you create objects, such as a Node inside this scope and want to return it to the calling function.