diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-29 05:26:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-29 05:26:48 -0700 |
commit | 5b4c120b9d1a1aae99d25f8f244261c6a3e39f09 (patch) | |
tree | 4f96b3e7eceea60bf9004ccfcf1de1727d7a0e91 | |
parent | e9bbabba8238b092437c4f78930fab616c2a8762 (diff) | |
download | txr-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.1 | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |