From 276477748a22975f9842d0683fcbf610c0e61c5d Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Mon, 13 Jul 2020 15:14:00 -0500 Subject: more documentation tweaks --- gtwiwtg.lisp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gtwiwtg.lisp') diff --git a/gtwiwtg.lisp b/gtwiwtg.lisp index 1ce24af..14c0048 100644 --- a/gtwiwtg.lisp +++ b/gtwiwtg.lisp @@ -684,8 +684,12 @@ Examples: (defun inject! (fn gen) "Injects an effect into a generator. Use this to add a side-effect -to the value generation process. The new generator produces exactly -the same values as GEN. +to the value generation process. + +Under most circumstances, the new generator produces exactly the same +values as GEN. If, however, the values generated by GEN are being +looked up in some remote memory location, and if FN is mutating that +memory, then the new generator may produce different values. Possibly good for debugging. @@ -727,7 +731,7 @@ GN produces every Nth + (N-1) value of GEN, including the (N-1)th value. This is sort of the opposite of INTERSPERSE!." (loop :for i :below n - :for cloned :in (nfurcate! n gen) + :for cloned :in (nfurcate! n gen) :collect (let ((j i)) (map! #'second -- cgit v1.2.3