I\'m trying to port yield and yield from from Python to Scheme.
yield
yield from
Here is an implementation I\'ve done:
(define (coroutine ro
One approach is here. If you are using guile, you should use prompts (they are about two orders of magnitude faster than using full continuations with guile):
How to implement Python-style generator in Scheme (Racket or ChezScheme)?