Re: Modifying nested dictionary/alist type data

2016-04-15 Thread Wette, Matthew R (3441)
> On Apr 14, 2016, at 4:44 PM, Paul Morris 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 nes

Re: perplexing syntax-rules bug

2014-12-20 Thread Wette, Matthew R (3441)
On Dec 20, 2014, at 6:37 AM, Matt wrote: (list (cons 'name ) (cons 'title #f)) OK. Thanks. I'm guessing list-copy would be another option: (sval (list-copy '((a . 1) (b . 2))) No. need to use alist-copy from (srfi srfi-1) (or (map list-copy '((a . 1) (b . 2)))

Re: perplexing syntax-rules bug

2014-12-20 Thread Wette, Matthew R (3441)
On Dec 19, 2014, at 11:39 PM, Marco Maggi wrote: > Wette, Matthew R (3441) wrote: > >> Sorry to bug, I can't figure out why "sval" in the second evaluation >> of "sect" is bound to the "sval" from the first evaluation of "sect". &

perplexing syntax-rules bug

2014-12-19 Thread Wette, Matthew R (3441)
Sorry to bug, I can't figure out why "sval" in the second evaluation of "sect" is bound to the "sval" from the first evaluation of "sect". Anyone understand? This is guile 2.0.11.-- Matt ;; bug_syntax.scm (define-syntax sect (syntax-rules () ((sect ...) (let ((sval '(