@abcdw An ‘alist-let*’ macro should help:https://git.savannah.gnu.org/cgit/shepherd.git/tree/modules/shepherd/scripts/herd.scm#n71
@jeko
@civodul Thank you for sharing!
@link2xt shared one almost satisfying solution with pattern matching:https://fosstodon.org/@link2xt/111084807966046449
However, I went with let* + assoc-ref and a few alist- helpers. More verbose, but flexible and usually doesn't require nesting.
@civodul
Thank you for sharing!
@link2xt shared one almost satisfying solution with pattern matching:
https://fosstodon.org/@link2xt/111084807966046449
However, I went with let* + assoc-ref and a few alist- helpers. More verbose, but flexible and usually doesn't require nesting.
@jeko