[plt-dev] I love Haskell (not an April Fools Joke!), feature request for 'for'

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Wed Apr 1 11:40:49 EDT 2009

On Apr 1, 2009, at 11:22 AM, Eli Barzilay wrote:

> It could -- but you're using the generic form of the sequence, so it's
> trying to guess what you want to iterate over.  This works:
>
>   (define wv (for/list ([c s] [i (in-list is)]) (list c i)))

Oops thank you. That saved a line! And a surface set!

;; ---

I am still impressed by Haskell's notational economy. 


Posted on the dev mailing list.