summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-29 05:26:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-29 05:26:48 -0700
commit5b4c120b9d1a1aae99d25f8f244261c6a3e39f09 (patch)
tree4f96b3e7eceea60bf9004ccfcf1de1727d7a0e91
parente9bbabba8238b092437c4f78930fab616c2a8762 (diff)
downloadtxr-5b4c120b9d1a1aae99d25f8f244261c6a3e39f09.tar.gz
txr-5b4c120b9d1a1aae99d25f8f244261c6a3e39f09.tar.bz2
txr-5b4c120b9d1a1aae99d25f8f244261c6a3e39f09.zip
doc: fix zipper example under mapcar
* txr.1: Split mapcar "zipper" example into two lines to prevent wrapping and add missing -> between form and output.
-rw-r--r--txr.13
1 files changed, 2 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index cd47676f..d9653cb0 100644
--- a/txr.1
+++ b/txr.1
@@ -27040,7 +27040,8 @@ and so doesn't return.
(mapcar (lambda (item) (* 2 item)) '(1 2 3)) -> (4 6 8)
;; "zipper" two lists together
- (mapcar (lambda (le ri) (list le ri)) '(1 2 3) '(a b c)) '((1 a) (2 b) (3 c)))
+ (mapcar (lambda (le ri) (list le ri)) '(1 2 3) '(a b c))
+ -> '((1 a) (2 b) (3 c)))
;; like append, mappend allows a lone atom or a trailing atom:
(mappend (fun identity) 3) -> (3)