Operation: A Simple Command Implementation
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 an
Operationthat invokes the closure
undois specified, it is the closure invoked for the reverse operation.
OperationQ(do, undo): Constructs an
Operationthat invokes a function with the body taken from the quoted argument
do. The function is enclosed in the calling environment. If
undois specified, it is treated equivalently to
do, except it should implement the reverse operation.
eval(expr): Executes the operation by evaluating the closure.
rev(x): Returns a new
Operationthat performs the reverse operation, as long as
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.