OK, off we go with #AdventOfCode! Day 1 was a gentle start, as is usually the case. I like that #Swift has:
distances.sort(by: >) // sorts an array in descending order
versus the approach of #Java:
Array.Sort(first, (a, b) => b.CompareTo(a));
Good chance to practice use of zip(a, b) too!
about 1 year ago