#Forth seemed like the perfect language for today's problem; just defining X, Y, Z as words which update the total and using the input file *as* Forth code. Just requires adding `total ?` at the end to read the solution.
Content warning: re: advent of forth, 2022, day #2
Nice trick defining A, B, C, X, Y, Z as words. @aw did the same thing, and it didn't even occur to me in my solution even though that's how I did day 2 last year. Having multiple #forth solutions available to read is very cool 😀
psf
in reply to phoebos • • •Content warning: re: advent of forth, 2022, day #2