[racket-dev] sequence syntax for (mlist #t #f …) ?

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Jun 21 04:43:48 EDT 2012

A few minutes ago, Robby Findler wrote:
> I usually in-naturals and zero? to do this.

(Ah, I forgot to include this, with the observation that worrying
about bignums is not relevant...)

> I see that one example (that I didn't write is in base-render.rkt
>     (define/public (render-nested-flow i part ri starting-item?)
>       (for/list ([b (in-list (nested-flow-blocks i))]
>                  [pos (in-naturals)])
>         (render-block b part ri (and starting-item? (zero? pos)))))

(Looks like it's only passed around in that file and only used to
render tables in html/latex.  Not a typical smallish example...)

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the dev mailing list.