aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtwiwtg.lisp
diff options
context:
space:
mode:
authorColin Okay <cbeok@protonmail.com>2020-07-13 15:14:00 -0500
committerColin Okay <cbeok@protonmail.com>2020-07-13 15:14:00 -0500
commit276477748a22975f9842d0683fcbf610c0e61c5d (patch)
treec65fdbedebadddc1ac799f59e934972d3053f2ff /gtwiwtg.lisp
parent7472336e62d4ae7f0a2775ae498b376d39aca895 (diff)
more documentation tweaks
Diffstat (limited to 'gtwiwtg.lisp')
-rw-r--r--gtwiwtg.lisp10
1 files changed, 7 insertions, 3 deletions
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