diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-02-05 16:11:00 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-02-05 16:11:00 -0800 |
commit | 38bb7375b93b048be6331e3376e091e7506e0fde (patch) | |
tree | 4e9245ddd5b5a4d5844386b5512489a5f3fca40f /txr.1 | |
parent | 70ddb25b6534b1dbf0e69b53dc768a80bb4838e0 (diff) | |
download | txr-38bb7375b93b048be6331e3376e091e7506e0fde.tar.gz txr-38bb7375b93b048be6331e3376e091e7506e0fde.tar.bz2 txr-38bb7375b93b048be6331e3376e091e7506e0fde.zip |
Adding whena macro.
We have ifa and conda; whena is conspicuously absent.
* lisplib.c (ifa_set_entries): Add autoload entry for whena.
* share/txr/stdlib/ifa.tl (whena): New macro.
* txr.1: Documented whena.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -14283,6 +14283,23 @@ as well as the anaphoric .code it variable feature. +.coNP Macro @ whena +.synb +.mets (whena < test << form *) +.syne +.desc +The +.code whena +macro is similar to the +.code when +macro, except that it is anaphoric in exactly the same manner as the +.code ifa +macro. It may be understood as conforming to the following equivalence: + +.cblk + (whena x f0 f2 ...) <--> (if x (progn f0 f2 ...)) +.cble + .coNP Macro @ dotimes .synb .mets (dotimes >> ( var < count-form <> [ result-form ]) << body-form *) |