86
SOLUTION MEGATHREAD-🎄- 2022 Day 3 Solutions -🎄-(self.adventofcode)
submitted 3 years, 1 month ago* (edited 3 days, 4 hours after) by daggerdragon to /r/adventofcode (134.8k)
NEWS
- Solutions have been getting longer, so we're going to start enforcing [our rule on oversi...
since 3 years, 1 month ago
3 of 3
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


MapSets are compatible with most (all?) ofEnumfunctions and you can useEnum.take(mapset, 1)This is my first time writing any Elixir, but MapSets are enumerable, so "get an element out of a MapSet" can be done with just
Enum.at(myset, 0). Other sensible ways probably exist!