Hi All,

I was having fun with sequece-generate* and wrote this
program as an example of its use.

(let-values ([(first next) (sequence-generate* '(a b c))])
  (let loop ([first first] [next next])
    (when first
      (display first) (newline)
      (call-with-values next loop))))

The   (let loop ([first first] [next next]) ... ) seems redundant.

Would it make sense for let-values to support the following?

(let-values loop ([(first next) (sequence-generate* '(a b c))])
  (when first
    (display first) (newline)
    (call-with-values next loop)))

-- 
Jens Axel Søgaard
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to