bram85's Blog

bram85's Avatar Image
Tooting mostly about #emacs.
← All posts

The named-let macro came in quite handy to solve #adventofcode day 6 in #elisp. It allows you to express your solution with a recursive call, while under the hood it translates to a loop. Which is, of course, also known as tail call optimization.

(spoiler alert in the link below if you’re even slower than me going through the AoC)

https://apps.bram85.nl/git/bram/advent-of-code/src/commit/2269bf6f66ac6b2f888b76011e2f8222b240333f/2022.org#headline-23

To like or reply, open original post on Emacs.ch