#1 Day18 methods and comptime

Opened by voroskoi on Feb 15, 2022, 4:18 PM
voroskoi
~ voroskoi pushed a change on Apr 20, 2022, 4:58 PM
· voroskoi · on Apr 19, 2022, 9:20 PM
KHVGYFXXJZY762NIUJXIMLYMKIZC3IKKAVLTA3A6FO2LWEIW26KQC
// voroskoi on Apr 20, 2022, 5:02 PM

This patch does 2 things:

  • moves functions inside SnailNumber struct (this part works)
  • uses comptime in explode() function to handle left and right childs, instead of explodeLeft() and explodeRight()

The latter one does not compile :-(