summaryrefslogtreecommitdiffstats
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
commit6bea8ebd49c71734fa5b212fe5baada74da15eef (patch)
tree97ed74206c20e4968c98e3d5cde59c685ea51ea0
parentf8188fab4e3bf3c7e3be06da1efc8fd9b5dbbd91 (diff)
downloadtxr-6bea8ebd49c71734fa5b212fe5baada74da15eef.tar.gz
txr-6bea8ebd49c71734fa5b212fe5baada74da15eef.tar.bz2
txr-6bea8ebd49c71734fa5b212fe5baada74da15eef.zip
doc: point out relationship between juxt and callf.
* txr.1: Under callf, give equivalence to juxt. Also refer to callf from juxt.
-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 *)