diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-11-18 00:04:05 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-11-18 00:04:05 +0100 |
commit | 3779df17f2726c2ad4c6904016f2b27c5049ed0d (patch) | |
tree | 920483986a077e492debd83a767b5766e420546c /mew.svnwiki | |
parent | beb92ad9009f6b6a338430ba137e33201cca2230 (diff) | |
download | mew-3779df17f2726c2ad4c6904016f2b27c5049ed0d.tar.gz mew-3779df17f2726c2ad4c6904016f2b27c5049ed0d.tar.xz mew-3779df17f2726c2ad4c6904016f2b27c5049ed0d.zip |
add odometer/cross-product
Diffstat (limited to 'mew.svnwiki')
-rw-r--r-- | mew.svnwiki | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mew.svnwiki b/mew.svnwiki index 3968b98..f11e5d6 100644 --- a/mew.svnwiki +++ b/mew.svnwiki @@ -446,6 +446,17 @@ by {{gen}}) and folds the function {{<f>}} over its values. If given, folding starts with {{<init>}}, else with the first element yielded by the generator. If the generator is empty, return {{(<f>)}}. +<procedure>(odometer <wheels>...)</procedure> + +Returns a generator that takes a list of numbers and yields all +combinations of numbers such that each is below it's wheel. The +rightmost number changes most quickly. + +<procedure>(cross-product <obj>...)</procedure> + +Returns a generator that takes multiple lists/vectors/strings and +yields all elements of their cartesian product (as lists). + == Regular expressions |