Operation object implements a
Command with an R
closure. This may be useful as a base for customized
derivatives. Otherwise, consider it a skeletal proof-of-concept.
Operation(do, undo = NULL): Constructs
Operation that invokes the closure
undo is specified, it is the closure invoked for the
OperationQ(do, undo): Constructs
Operation that invokes a function with the body taken from
the quoted argument
do. The function is enclosed in the
calling environment. If
undo is specified, it is
treated equivalently to
do, except it should implement the
eval(expr): Executes the operation by evaluating the
rev(x): Returns a new
Operation that performs
the reverse operation, as long as
undo was provided.
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.