From ade18e95887973ff44fbe50ffa3980f4441b5fd1 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 7 Dec 2011 18:28:52 -0800 Subject: * txr.1: flip operator documented. Bad syntax for pop fixed. Blank section for list-vector function added. --- ChangeLog | 5 +++++ txr.1 | 14 +++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e1a8d07c..b8ed37d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-12-07 Kaz Kylheku + + * txr.1: flip operator documented. Bad syntax for pop fixed. + Blank section for list-vector function added. + 2011-12-07 Kaz Kylheku * eval.c (op_modplace): If the operator is push, then reverse 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 ) -(pop ) +(pop ) + +(flip ) .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: @@ -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 -- cgit v1.2.3