[plt-scheme] mutable lists/dicts?

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Sat Apr 10 09:45:04 EDT 2010

Try mutable hash-tables.

Robby

On Sat, Apr 10, 2010 at 8: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
>
>> (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?
>
> Thanks,
>
> -- Éric
>
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.