Add simple syntax for creating an operation.
Add simple syntax for creating an operation.
Define a function after op function that returns:
1) A literal value, e.g. val PlusOne = op { (i:Int) => i + 1 }
2) An operation to be executed: val LocalPlusOne ( (r:Raster, i:Int) => local.Add(r,i + 1) )
3) Or a StepResult (which indicates success or failure) val PlusOne = op { (i:Int) => Result(i + 1) }
Create an operation from a 4-arg function that returns a literal value.
Create an operation from a 4-arg function that returns an operation.
Create an operation from a 4-arg function that returns StepOutput.
Create an operation from a 3-arg function that returns a literal value.
Create an operation from a 3-arg function that returns an operation.
Create an operation from a 3-arg function that returns StepOutput.
Create an operation from a 2-arg function that returns a literal value.
Create an operation from a 2-arg function that returns an operation.
Create an operation from a 2-arg function that returns StepOutput.
Create an operation from a 1-arg function that returns a literal value.
Create an operation from a 1-arg function that returns a literal value.
For example:
val PlusOne = op { (i:Int) => i + 1 }
Create an operation from a 1-arg function that returns an operation to be executed.
Create an operation from a 1-arg function that returns an operation to be executed.
For example:
val LocalPlusOne ( (r:Raster, i:Int) => local.Add(r,i + 1) )
Create an operation from a 1-arg function that returns StepOutput.
Create an operation from a 1-arg function that returns StepOutput.
For example:
val PlusOne = op { (i:Int) => Result(i + 1) }