mirror of
https://github.com/janet-lang/janet
synced 2025-12-06 00:28:08 +00:00
Remove function eachy.
Instead use `each`.
This commit is contained in:
@@ -7,15 +7,6 @@
|
||||
(print "simple yielding")
|
||||
(each item f (print "got: " item ", now " (fiber/status f)))
|
||||
|
||||
(def f
|
||||
(coro
|
||||
(for i 0 10
|
||||
(yield (string "yield " i))
|
||||
(ev/sleep 0))))
|
||||
|
||||
(print "old style fiber iteration")
|
||||
(eachy item f (print "got: " item ", now " (fiber/status f)))
|
||||
|
||||
(def f
|
||||
(coro
|
||||
(for i 0 10
|
||||
|
||||
Reference in New Issue
Block a user