[plt-scheme] Is there an idiom for throwing away some values?

From: Dave Gurnell (d.j.gurnell at gmail.com)
Date: Wed Jul 29 11:52:57 EDT 2009

Noel Welsh wrote:
> I run into this all the time: writing a for/fold where I only want  
> one value at the end. [...]

Me too. Also, though maybe this is laziness on my part, combining for- 
loops and append/filter/reverse and so on.

I added a few useful shorthands to Unlib 3.16 in case they're helpful  
to anyone... docs here:

     http://planet.plt-scheme.org/package-source/untyped/unlib.plt/3/16/planet-docs/unlib/for.html

-- Dave



Posted on the users mailing list.