[plt-scheme] nested mutable lists in R6RS
I am working with the following, and uncommenting no difference
(module cars scheme
; (require scheme/mpair)
; (require rnrs/mutable-pairs-6)
(define x '(1 2 3))
; (set-car! x (cddr x))
; (set-mcar! x (cddr x))
)
LordGeoffrey wrote:
> My pardon, i cant get mutable lists, srfi-1 and R6RS to execute in
> one file.
> I cant use mxxx procs on lists that srfi-1 will operate on.
>
>
> Noel Welsh wrote:
>> On Fri, Jun 12, 2009 at 11:46 AM,
>> LordGeoffrey<lordgeoffrey at optushome.com.au> wrote:
>>
>>> Is it possible to have nested mutable lists in R6RS?
>>>
>>
>> Yes, a list can contain any value, including another list.
>>
>>
>>> I ask because i have a nested list structure and i want to change the
>>> occasional value in the list, and possibly even restructure the tree.
>>>
>>> As part of that i like using find-tail and other common list functions.
>>> I assume i am merely including the wrong combination of libraries.
>>>
>>> Any advice?
>>>
>>
>> You don't actually mention any issues you're having, so I can't
>> really say more.
>>
>> N.
>>
>>
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>