• enkers
        link
        fedilink
        8
        edit-2
        11 months ago

        Downside is that it includes your indentation whitespace, though I doubt chatgpt would care about that, as I’d imagine it gets discarded when it’s tokenized, but it’s still good to keep in mind when using " " ".

          • enkers
            link
            fedilink
            1
            edit-2
            11 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!