diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-10-06 07:04:51 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-10-06 12:24:27 -0700 |
commit | 49944f561aaf44935996cd22e777864aa623a220 (patch) | |
tree | e4405819084596a14790996809bccf5c240d132f /txr.1 | |
parent | 5698af7271b5c21a4b8a2721e5c20f66ad0dd7e2 (diff) | |
download | txr-49944f561aaf44935996cd22e777864aa623a220.tar.gz txr-49944f561aaf44935996cd22e777864aa623a220.tar.bz2 txr-49944f561aaf44935996cd22e777864aa623a220.zip |
Fix misleading documentation under if/iffi.
* txr.1: Examples under iff and iffi had two issues:
the false predicate function was used in a role which calls
for a function that unconditionally returns nil.
The correct function is nilf. Square brackets must
be used, otherwise nilf and identity are unbound
variables. Also the equivalence for [iff a] now
indicates that it's equiavlent to a, showing that
it's not useful to default both arguments.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -28556,17 +28556,17 @@ and (iffi a b) <--> (iff a b identity) - (iffi a b false) <--> (iff a b) + [iffi a b nilf] <--> [iff a b] - (iffi a identity false) <--> (iff a) + [iffi a identity nilf] <--> [iff a] .cble -The following equivalence illustrates +The following equivalences illustrate .code iff with both optional arguments omitted: .cblk - (iff a) <---> (iff a identity false) + [iff a] <---> [iff a identity nilf] <---> a .cble .coNP Functions @ tf and @ nilf |