[plt-scheme] mutable lists/dicts?

From: Eric Tanter (etanter at dcc.uchile.cl)
Date: Sat Apr 10 09:32:43 EDT 2010

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




Posted on the users mailing list.