[plt-dev] Errors with SRFI-1 in R6RS mode that are not in #scheme mode in PLT 4.1.4.3-svn13feb2009
On Mar 1, Grant Rettke wrote:
>
> This does not:
>
> #!r6rs
>
> (import (rnrs base)
> (only (srfi :1) split-at take drop))
>
> (take '(a b c d e) 2) ; => (a b)
> (drop '(a b c d e) 2) ; => (c d e)
> (split-at '(a b c d e) 2) ; => expecting
> ;(values (take '(a b c d e) 2) (drop '(a b
> c d e) 2)
>
> >take: index 2 too large for list (not a proper list): {a b c d e}2
> >drop: index 2 too large for list (not a proper list): {a b c d e}2
> >take: index 2 too large for list (not a proper list): {a b c d e}2
>
> What am I doing wrong?
Mutable lists are not `list?', so you get the same error as if you did
(take "blah" 2).
(BTW, such messages like this are more fitting to the main list.)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!