14 Generators (short names)
(require (planet untyped/unlib/gen)) |
This module re-provides the procedures from "generator.ss" with shorter, more convenient names. See Generators for more detailed documentation.
(g:range start [end step]) → (gen-> integer?) |
start : integer? |
end : (U integer? #f) = #f |
step : integer? = 1 |
Shorter name for range->generator.
(g:map fn gen1 gen2 ...) → (gen-> ans) |
fn : (arg1 arg2 ... -> ans) |
gen1 : (gen-> arg1) |
gen2 : (gen-> arg2) |
Shorter name for generator-map.
(g:fold-map fn initial-seed gen1 gen2 ...) → seed |
fn : (arg1 arg2 ... seed -> seed) |
initial-seed : seed |
gen1 : (gen-> arg1) |
gen2 : (gen-> arg2) |
Shorter name for generator-fold-map.
Shorter name for generator-filter.
Shorter name for generator-filter-map.
Shorter name for generator-remove-duplicates.
(g:for-each fn gen1 gen2 ...) → void? |
fn : (arg1 arg2 ... -> void) |
gen1 : (gen-> arg1) |
gen2 : (gen-> arg2) |
Shorter name for generator-for-each
(g:fold fn initial-seed gen1 gen2 ...) → seed |
fn : (arg1 arg2 ... seed -> seed) |
initial-seed : seed |
gen1 : (gen-> arg1) |
gen2 : (gen-> arg2) |
Shorter name for generator-fold
| ||||||||||||||||||||||||||||
src : (gen-> a) | ||||||||||||||||||||||||||||
item->key : (a -> b) | ||||||||||||||||||||||||||||
item->val : (a -> c) = (lambda (a) a) | ||||||||||||||||||||||||||||
initial-hash : (hashof b c) = (make-hash) |
Shorter name for generator->hash.