• aichan@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    30
    ·
    edit-2
    21 days ago

    By the end, you will understand why this code above works.

    I was utterly fooled. Looks cool though!

    • Caveman@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      8 days ago

      It assumes that you already know how modulus works under the hood, which I absolutely did not. The proof for how it’s allowed is at the bottom which I would have read first if I’d have known.