Rules: no spoilers.

The other rules are made up as we go along.

Share code by link to a forge, home page, pastebin (Eric Wastl has one here) or code section in a comment.

  • geriksonOP
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago
    spoiler

    “you have linked hash maps? LUXURY!”

    In my code I had to resort to this sorting

    for my $lens ( sort { $Boxes->[$idx]{$a}{pos} <=> $Boxes->[$idx]{$b}{pos} }  keys %{ $Boxes->[$idx] } )
    

    Perl at its best!

    • swlabr
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      I am so mad that I don’t know Perl, honestly.

      • geriksonOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        It’s a nice language! And I believe it’s what AoC is made in. Certainly a lot of stuff seems tailor-made for the language.