• RVGamer06
    link
    1217 days ago

    Has someone made a library for that?

    • @[email protected]OP
      link
      fedilink
      4417 days ago

      Use a dynamically typed language and you won’t have to: just override the default reverse() method on strings like a Real Programmer!

      Unintended consequences you say? Nonsense! What could possibly go wrong?

      • @[email protected]
        link
        fedilink
        2717 days ago

        I’m tempted to publish an NPM package to do so as a joke, but I fear that it’d get used seriously

          • @[email protected]
            link
            fedilink
            English
            6
            edit-2
            16 days ago
            async function reverse(str){
                return ChatGPT.ask(`Please reverse the string ${str}. Reply only with the answer, without other words or symbols.`);
            }
            
      • RVGamer06
        link
        616 days ago

        Lua could possibly do this