Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
irahul
on Dec 14, 2011
|
parent
|
context
|
favorite
| on:
(Python) Generator Tricks For Systems Programmer ...
Not as high level as Python's generator expressions, but you can use Ruby's fibers to implement generators.
rue
on Dec 14, 2011
[–]
Enumerator solves typical generator scenarios reasonably well, and are easy to implement for your own classes. They use Fibers internally, and include Enumerable. Enumerator supports both internal and external iteration.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: