From 6ba995ca8bcb9e20965fd2c09876eeb44c777f59 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 24 May 2017 06:52:32 -0700 Subject: doc: point out relationship between juxt and callf. * txr.1: Under callf, give equivalence to juxt. Also refer to callf from juxt. --- txr.1 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 *) -- cgit v1.2.3