diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-10-15 19:50:26 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-10-15 19:52:24 +0200 |
commit | 5fbe1d319b53f0a383e1403f916e40221b0c8386 (patch) | |
tree | e069f17a02973456146539d43079dc47dbc3400e /mew.svnwiki | |
parent | 3497de705ad29f4f02a35309b3336b8643f51a9d (diff) | |
download | mew-5fbe1d319b53f0a383e1403f916e40221b0c8386.tar.gz mew-5fbe1d319b53f0a383e1403f916e40221b0c8386.tar.xz mew-5fbe1d319b53f0a383e1403f916e40221b0c8386.zip |
add genumerate
Diffstat (limited to 'mew.svnwiki')
-rw-r--r-- | mew.svnwiki | 6 |
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 |