Package generator.plt contributed by dyoo [docs]
To load: (require (planet dyoo/generator:2:2/generator))
Old style:(require (planet "generator.ss" ("dyoo" "generator.plt" 2 2)))
Min Racket version: 360
Package description:
Provides nice syntactic sugar for writing Python/Ruby stylegenerators.
Downloads this week: 0
Total downloads: 274
Tickets:0
Open tickets:0
Primary files:
NameContract
generator?
(-> any/c boolean?)
(struct exn:fail:generator-exhausted ())
make-generator
(-> (-> (-> any/c any) any) generator?)
generator-next
(case->
  (-> generator? any)
  (-> generator? (-> exn:fail? any) any)
  (-> generator? (-> exn:fail? any) any/c any))
yield
define-generator
generator-fold
(-> (-> any/c any/c any) any/c generator? any)
generator-for-each
(-> (-> any/c any) generator? any)
list/gen
(-> (listof any/c) generator?)
list->flattened/gen
(-> (listof any/c) generator?)
 Current version
PLaneT versionExternal versionSourceDLsDocsReq. PLTDate added
(2 2)1.1
78
3602007-08-05
To load: (require (planet dyoo/generator:2:2/generator))
Available in repositories: 4.x, 3xx
Adjusted code to use the control operators in (lib "control.ss"). Also fixed a minor error-reporting bug when the generator is exhaused.
No Tickets Currently open for this Package [New Ticket]

 Old versions
PLaneT versionExternal versionSourceDLsDocsReq. PLTDate added
(2 1)1.1
2
3602007-08-05
To load: (require (planet "generator.ss" ("dyoo" "generator.plt" 2 (= 1))))
Available in repositories: 3xx, 4.x
Adjusted code to use the control operators in (lib "control.ss"). Also fixed a minor error-reporting bug when the generator is exhaused.
(2 0)1.0
111
[none]2007-04-01
To load: (require (planet "generator.ss" ("dyoo" "generator.plt" 2 (= 0))))
Available in repositories: 4.x, 3xx
[no release notes]
(1 0)1.0
83
[none]2007-04-01
To load: (require (planet "generator.ss" ("dyoo" "generator.plt" 1 (= 0))))
Available in repositories: 4.x, 3xx
[no release notes]