Follow

Day 6 of Advent of Code completed in record time (less than an hour). Part 2 took me maybe 5 minutes of adjustment, which was surprising.

My knowledge of Typescript is no longer holding me back, I can largely manage without searching for common things.

I think my number of searches this time was 2. First to see if there was a built in zip() function like python has (no) and then second to verify the syntax of filter() on an array.

I feel like I'm back writing Perl again with lines like this:

Number(line.split(":")[1].trim().split(" ").filter((e) => e != "").join(""))

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.