forked from arcfide/chez-srfi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
%3a158.sls
25 lines (22 loc) · 1.13 KB
/
%3a158.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(library (srfi :158)
(export
;; Generator constructors
generator circular-generator make-iota-generator make-range-generator
make-coroutine-generator list->generator vector->generator
reverse-vector->generator string->generator bytevector->generator
make-for-each-generator make-unfold-generator
;; Generator operations
gcons* gappend gflatten ggroup gmerge gmap gcombine gfilter gremove
gstate-filter gtake gdrop gtake-while gdrop-while gdelete
gdelete-neighbor-dups gindex gselect
;; Consuming generated values
generator->list generator->reverse-list generator->vector
generator->vector! generator->string generator-fold generator-for-each
generator-map->list generator-find generator-count generator-any
generator-every generator-unfold
;; accumulator constructors
make-accumulator count-accumulator list-accumulator
reverse-list-accumulator vector-accumulator reverse-vector-accumulator
vector-accumulator! string-accumulator bytevector-accumulator
bytevector-accumulator! sum-accumulator product-accumulator)
(import (srfi :158 generators-and-accumulators)))