[plt-scheme] Re: FrTime niggle

From: Sylvain Beucler (beuc at beuc.net)
Date: Tue May 18 13:36:50 EDT 2004

That is strange, it does not work for me:

(require (lib "1.ss" "srfi"))
(iota 9) ; => (0 1 2 3 4 5 6 7 8)
; (iota (modulo seconds 10)) ; => iota: given #<struct:signal>
(define (iota n)
  (define (iter i acc)
    (if (< i 0)
        acc
        (iter (- i 1) (cons i acc))))
  (iter (- n 1) '()))
(iota 9) ; => (0 1 2 3 4 5 6 7 8)
(iota (modulo seconds 10)) ; => () then (0) then (0 1) ...

It does not work with the srfi iota. It does with mine.
Any clue?

I tried with both 206p1+lastest FrTime and 206.1-cvs11may2004.

-- 
Sylvain


David Van Horn wrote:
> No, you can use SRFI 1's iota just fine with FrTime.
> 
> Welcome to DrScheme, version 206.1-cvs11mar2004
> Language: FrTime.
>  > (require (lib "1.ss" "srfi"))
>  > (iota (modulo seconds 10))
> (0 1 2 3)


Posted on the users mailing list.