Y
Hacker News
new
|
ask
|
show
|
jobs
by
lelanthran
657 days ago
> The kind of thing that would probably already be a future/promise/etc in other languages.
Or a coroutine (caller calls `yield(item)` for each match, and `return` when done).