On 23/02/2019 14:25, Zelphir Kaltstahl wrote:
The main difference, as has been pointed out before, is that Python
generators are more common as an idiom for solving problems that in
Racket would typically be approached differently.
This piqued my interest. Can you elaborate a bit or give an example? How
would one approach things with Racket differently?

Stream and sequence processing in Racket cover much of what generators are used for in Python. The simplest example is stream-map in Racket, whose Python 2 equivalent would require a generator. In Python 3, the standard map has become lazy.

Konrad.


--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to