summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-24 06:52:32 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-24 06:52:32 -0700
commit6ba995ca8bcb9e20965fd2c09876eeb44c777f59 (patch)
tree97ed74206c20e4968c98e3d5cde59c685ea51ea0 /txr.1
parent9f72c115e6f1e0aaae69b3e12996412ad1bbeb4d (diff)
downloadtxr-6ba995ca8bcb9e20965fd2c09876eeb44c777f59.tar.gz
txr-6ba995ca8bcb9e20965fd2c09876eeb44c777f59.tar.bz2
txr-6ba995ca8bcb9e20965fd2c09876eeb44c777f59.zip
doc: point out relationship between juxt and callf.
* txr.1: Under callf, give equivalence to juxt. Also refer to callf from juxt.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.122
1 files changed, 22 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 4f694360..ef497f22 100644
--- a/txr.1
+++ b/txr.1
@@ -38956,6 +38956,12 @@ implementation:
funcs)))
.cble
+The
+.code callf
+function generalizes
+.code juxt
+by allowing the combining function to be specified.
+
.TP* Example:
.cblk
@@ -39302,6 +39308,22 @@ arguments:
-> ((1 1) (4 4))
.cble
+The following equivalence holds between
+.code juxt
+and
+.codn callf :
+
+.cblk
+ [juxt f0 f1 f2 ...] <--> [callf list f0 f1 f2 ...]:w
+.cble
+
+Thus,
+.code juxt
+may be regarded as a specialization of
+.code callf
+in which the main function is implicitly
+.codn list .
+
.coNP Function @ mapf
.synb
.mets (mapf < main-function << arg-function *)