summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-07 18:28:52 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-07 18:28:52 -0800
commitade18e95887973ff44fbe50ffa3980f4441b5fd1 (patch)
tree5741e6bc16a1711401bd5bc93cee996c3ff75412 /txr.1
parent5fce4b8cb76796459396a980df1fcc9c259e5c38 (diff)
downloadtxr-ade18e95887973ff44fbe50ffa3980f4441b5fd1.tar.gz
txr-ade18e95887973ff44fbe50ffa3980f4441b5fd1.tar.bz2
txr-ade18e95887973ff44fbe50ffa3980f4441b5fd1.zip
* txr.1: flip operator documented. Bad syntax for pop fixed.
Blank section for list-vector function added.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.114
1 files changed, 11 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index a9693b97..74b3dac6 100644
--- a/txr.1
+++ b/txr.1
@@ -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