[racket] fold/null-list? in srfi/1
R5RS forms such as '(1 2 3) create mutable lists. However, the
`srfi/1' library expects Racket's usual immutable lists.
On Sat, Feb 26, 2011 at 11:40 AM, Li-Ta Lo <lita.ollie at gmail.com> wrote:
> Hi,
>
> I am using R5RS mode in Racket 5.1. I was trying to use
> the fold function form srfi/1. I got the error message that
> the argument to null-list? is out of domain. What's wrong?
>
> (#%require srfi/1)
> (null-list? '(1 2 3))
>
> null-list?: argument out of domain (1 2 3)
>
> Ollie
>
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
>
--
sam th
samth at ccs.neu.edu