diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | txr.1 | 14 |
2 files changed, 16 insertions, 3 deletions
@@ -1,5 +1,10 @@ 2011-12-07 Kaz Kylheku <kaz@kylheku.com> + * txr.1: flip operator documented. Bad syntax for pop fixed. + Blank section for list-vector function added. + +2011-12-07 Kaz Kylheku <kaz@kylheku.com> + * eval.c (op_modplace): If the operator is push, then reverse the arguments. We want (push item list) for compatibility with CL. (expand): Bugfix: some of the cases were constructing new @@ -4592,7 +4592,7 @@ Description: The defun operator introduces a new function in the global function namespace. -.SS Operators inc, dec, set, push and pop +.SS Operators inc, dec, set, push, pop and flip .TP Syntax: @@ -4604,7 +4604,9 @@ Syntax: (push <item> <place>) -(pop <item> <place>) +(pop <place>) + +(flip <place>) .TP Description: @@ -4650,9 +4652,13 @@ like (let ((temp (car x))) (set x (cdr x)) temp) -except that x is evaluated only once, and no such temporary variale +except that x is evaluated only once, and no such temporary variable is visible to the program. +The flip operator toggles a place between true and false. If the place +contains a value other than nil, then its value is replaced with nil. +If it contains nil, it is replaced with t. + Currently, these forms are recognized as places: <symbol> @@ -4912,6 +4918,8 @@ The following are Lisp functions and variables built-in to TXR. .SS Function vector-list +.SS Function list-vector + .SS Function assoc .SS Function assq |