[racket-dev] An Improvement to for/set

From: Daniel King (danking at ccs.neu.edu)
Date: Mon Feb 20 09:03:25 EST 2012

On Sun, Feb 19, 2012 at 22:20, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
> for/set sounds and looks more uniform with the rest of the loops, no?

I disagree, I think for/union is a natural analogue for for/product
and for/sum. Both for/union and for/set should be in the set library.

> union you can throw in as a function or for/fold.

I found that I use for/union often enough that it's worth writing a
for/union macro instead of rewriting the same for/fold boilerplate
code every time. However, I'm not sure that I understand what you're
suggesting here.

Dan King
College of Computer and Information Science
Northeastern University

Posted on the dev mailing list.