Riinu Pius @pius.cloud · Dec 2

#AdventOfCode 2024, Day 02 in #rstats and #tidyverse I wish I could say no for loops were harmed in solving today's puzzle...but I can't. I briefly envisioned something with maps and filters, but this is probably easier to read and understand. Having fun either way 🥳

7 likes 3 replies

?

Replies

Norm Matloff (你有冇諗清楚呀?) · Dec 3

Your phrase here, "[the looped version] is probably easier to read and understand," should be read daily by those who religiously insist on avoiding loops.

Sarah Harris · Dec 2

The having fun part is all that matters - I'm never going to get on any leaderboards, or win prizes for the simplicity and elegance of my code :) But it works, and I enjoy getting there.

Granville Matheson · Dec 2

I love your clean code screenshots! Are you just taking screenshots of your editor, or is there some package or add-on you're using for generating these?