• enkers
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      10 months ago

      That’s a pretty clean looking solution. There are a few others as well, but yours seems better, and it’s in the standard lib to boot!