diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-12-22 08:47:15 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-12-22 08:47:15 -0800 |
commit | b6fc9541ac8a4feb99237b5b3a3046dcfd38d9b3 (patch) | |
tree | c068237782281a86294e4c34ba7959704d18e670 | |
parent | 56c475f7bf5cd89993fe4c82cac35eef57482228 (diff) | |
download | txr-b6fc9541ac8a4feb99237b5b3a3046dcfd38d9b3.tar.gz txr-b6fc9541ac8a4feb99237b5b3a3046dcfd38d9b3.tar.bz2 txr-b6fc9541ac8a4feb99237b5b3a3046dcfd38d9b3.zip |
doc: fix example comment under ifa
* txr.1: The "Rule 7" example is actually triggering Rule 6.
Fix comment and add a Rule 7 example.
-rw-r--r-- | txr.1 | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -14129,7 +14129,7 @@ form. .cblk (ifa t 1 0) -> 1 - ;; Rule 7: it binds to (* x x), which is + ;; Rule 6: it binds to (* x x), which is ;; the only it-candidate. (let ((x 6) (y 49)) (ifa (> y (* x x)) ;; it binds to (* x x) @@ -14147,6 +14147,13 @@ form. (list it)) -> (4) + ;; Rule 7: no candidates: choose leftmost + (let ((x 6) (y 49)) + (ifa (< 1 x y) + (list it))) + -> (1) + + -> (4) ;; Violation of Rule 1: ;; while is not a function (ifa (while t (print 42)) |