X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/9a3cb4610ab59001fd44c13dcdc6ea206acf0e50..1edb774eed8bea3f6dbde5b02db6ecd209394cf8:/doc/misc.tex diff --git a/doc/misc.tex b/doc/misc.tex index ac89b6c..b7ed6e5 100644 --- a/doc/misc.tex +++ b/doc/misc.tex @@ -184,7 +184,7 @@ refer to the same place; but that doesn't work for these locatives. An anaphoric macro implicitly binds a well-known name to a value of interest, in the course of doing something else. The concept was popularized by Paul -Graham \cite{FIXME:OnLisp}. +Graham \cite{graham-1993:on-lisp}. The macros described here all bind the variable @|it|. @@ -505,6 +505,15 @@ be implemented fairly easily using @|merge-lists| below. the partial order. \end{describe} +\begin{describe}{fun}{cross-product \&rest @} + Return the cross product of the @. + + Each arguments may be a list, or a (non-nil) atom, which is equivalent to a + singleton list containing just that atom. Return a list of all possible + lists which can be constructed by taking one item from each argument list + in turn, in an arbitrary order. +\end{describe} + \begin{describe}{fun} {find-duplicates @ @ \&key :key :test} Call @ on each pair of duplicate items in a @.