[racket] for/seq for creating sequences with for loops

From: Danny Yoo (dyoo at hashcollision.org)
Date: Sun Sep 23 23:21:04 EDT 2012

I was looking into sequences a bit more, and was surprised to see that
there doesn't appear to be a "for" loop to generate sequences in the
standard library.

I've coded up an implementation for for/seq and for*/seq:


It uses generators behind the scenes.  Suggestion for improvements?

Posted on the users mailing list.