• Gladaed@feddit.org
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    4 days ago

    It’s literally the only way to do this. Other ways include checking of loads of bools. That’s slow.

    • bss03@infosec.pub
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 days ago

      In C maybe. In language that support proper recursion schemes, the apomorphism models the early-exit loop.