[racket] fold/null-list? in srfi/1
I recommend just using plain Racket, instead of the R5RS language.
Choose "Use the language declared in the source" in the Language
dialog.
On Sat, Feb 26, 2011 at 11:52 AM, Li-Ta Lo <lita.ollie at gmail.com> wrote:
> How should I create an immutable list?
>
> Ollie
>
> On Sat, Feb 26, 2011 at 9:46 AM, Sam Tobin-Hochstadt <samth at ccs.neu.edu>
> wrote:
>>
>> 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
>
>
--
sam th
samth at ccs.neu.edu