aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtwiwtg.lisp
diff options
context:
space:
mode:
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