[racket-dev] bug in srfi-42

From: William James (w_a_x_man at yahoo.com)
Date: Fri Jan 9 19:42:52 EST 2015

Welcome to Racket v6.1.1.

> (require srfi/42)

> (first-ec #f (: n 2 8) (if (odd? n)) n)
stdin::153: :until: expected <generator> in
  in: (if (odd? n))
  context...:
   C:\Program Files\Racket\share\pkgs\srfi-lib\srfi\42\expansion.scm:68:2: gener
ator->loop
   C:\Program Files\Racket\share\pkgs\srfi-lib\srfi\42\expansion.scm:127:7
   C:\Program Files\Racket\collects\racket\private\misc.rkt:87:7

> (last-ec #f (: n 2 8) (if (odd? n)) n)
7

> (list-ec (: n 2 8) (if (odd? n)) n)
'(3 5 7)



Posted on the dev mailing list.