From 0e356876160ccc13f4e3927891ab5543dce7e345 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Wed, 8 Jul 2020 20:47:51 -0500 Subject: funny wording in thread-through docstring --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 87767c4..506b653 100644 --- a/README.md +++ b/README.md @@ -494,12 +494,12 @@ generator constructor called `thread-through`. (defun thread-through (elem vec) "Creates a generator that produces a series of N vectors of length N, where N is one greater than the length of VEC. The vectors - produced by this generator have the same elements of VEC but have ELEM + produced by this generator have the same contents as VEC but have ELEM inserted at each possible spot, N spots in all. Note: The generator reuses the memory that it returns on each step. If - you intend to collect to products of the generator, you should copy - them to somehow first." + you intend to collect the values of the generator, you should copy + them on each iteration." (let ((buffer (concatenate 'vector vec (list elem)))) ;; reusable buffer (map! (lambda (idx) -- cgit v1.2.3