procedure
fun HatBlockHost.procedure(name: String, warp: Boolean = false, block: ProcedurePrototypeBuilder.() -> Unit): Lazy<Procedure>
Defines a custom block procedure.
Return
A lazy-initialized procedure object that can be called.
Parameters
name
The initial name/label of the procedure.
warp
If true, the procedure will run without screen refresh.
block
The builder lambda to define arguments and labels.