[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Modifying nested dictionary/alist type data
From: |
Wette, Matthew R (3441) |
Subject: |
Re: Modifying nested dictionary/alist type data |
Date: |
Fri, 15 Apr 2016 14:00:17 +0000 |
> On Apr 14, 2016, at 4:44 PM, Paul Morris <address@hidden> wrote:
> But if you have nested alists like this
>
> (define my-alist ‘((aaa . ((bbb . ((ccc . 10)))))))
>
> and you want to change ccc, then the “set!” trick doesn’t help. (...what
> would you “set!”?) So what’s the best approach here for such nested data
> structures? Maybe I should just use nested hash maps instead? Sorry if I’m
> missing something obvious.
Not sure I understand this entirely, but have you looked at boxes? Look at
SRFI-111 in the Guile Reference.