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)


_________________________
  Racket Developers list:
  http://lists.racket-lang.org/dev

Reply via email to