summary refs log tree commit diff
path: root/mew.svnwiki
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-10-15 19:50:26 +0200
committerLeah Neukirchen <leah@vuxu.org>2022-10-15 19:52:24 +0200
commit5fbe1d319b53f0a383e1403f916e40221b0c8386 (patch)
treee069f17a02973456146539d43079dc47dbc3400e /mew.svnwiki
parent3497de705ad29f4f02a35309b3336b8643f51a9d (diff)
downloadmew-5fbe1d319b53f0a383e1403f916e40221b0c8386.tar.gz
mew-5fbe1d319b53f0a383e1403f916e40221b0c8386.tar.xz
mew-5fbe1d319b53f0a383e1403f916e40221b0c8386.zip
add genumerate
Diffstat (limited to 'mew.svnwiki')
-rw-r--r--mew.svnwiki6
1 files changed, 6 insertions, 0 deletions
diff --git a/mew.svnwiki b/mew.svnwiki
index fad3cf6..f369ee9 100644
--- a/mew.svnwiki
+++ b/mew.svnwiki
@@ -201,6 +201,12 @@ Generator yielding a sliding window of length {{<len>}} (as a list)
 over the values yielded by the generator {{<gen>}}.  Yields never if
 the generator yielded fewer than {{<len>}} elements.
 
+<procedure>(genumerate <gen>)<procedure>
+
+Takes the values yielded by the generator {{<gen>}} and yields them as
+a {{cons}} where the first cell is an index incremented on every
+yield.
+
 <procedure>(gfix <gen>)</procedure>
 
 Returns a generator that runs the generator {{<gen>}} until it yields