r/adventofcode • u/daggerdragon • Dec 04 '15
SOLUTION MEGATHREAD --- Day 4 Solutions ---
--- Day 4: The Ideal Stocking Stuffer ---
Post your solution as a comment. Structure your post like the Day Three thread.
14
Upvotes
View all comments
Show parent comment
1
u/hutsboR Dec 04 '15
There is, I love it when I find other people writing Elixir because you always find another clever approach to doing something. On that token, here's something you can do:
Instead of converting to a character list, you can match directly on the binary like so