[plt-scheme] mutable lists/dicts?
On Sat, Apr 10, 2010 at 9:32 AM, Eric Tanter <etanter at dcc.uchile.cl> wrote:
> Hi,
>
> Experimenting for the first time with mutable lists (I want a mutable assoc list):
>
>> (dict? (list (list 1 2) (list 12)))
> #t
>
>> (dict-mutable? (list (list 1 2) (list 1 2)))
> #f
>
> --> ok, so let's move to mutable lists!
>
>> (dict? (mlist (mlist 1 2) (mlist 1 2)))
> #f
^^^
Mutable lists are not dictionaries.
>> (dict-mutable? (mlist (mlist 1 2) (mlist 2 3)))
> dict-mutable?: expected argument of type <dict>; given {{1 2} {2 3}}
>
> --> what??
>
> I must be missing something! any idea?
--Carl