13 Generators (short names)
This module re-provides the procedures from "generator.ss" with shorter, more convenient names. See Generators for more detailed documentation.
g:end : symbol? |
Shorter name for generator-end.
(g:end? item) → boolean? |
item : any |
Shorter name for generator-end?.
(g:range start [end step]) → (gen-> integer?) |
start : integer? |
end : (U integer? #f) = #f |
step : integer? = 1 |
Shorter name for range->generator.
(in-gen gen) → (sequence? arg) |
gen : (gen-> arg) |
Shorter name for in-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.
(g:filter pred src) → (gen-> arg) |
pred : (arg -> boolean?) |
src : (gen-> arg) |
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.
(g:project mask src [same?]) |
→ (gen-> (list any ... (listof (listof any)))) |
mask : (listof boolean) |
src : (gen-> (listof any)) |
same? : [(any any -> boolean)] = eq? |
Shorter name for generator-project
(g:debug message src) → (gen-> a) |
message : string? |
src : (gen-> a) |
Shorter name for generator-debug.