Alexg Test2
coding a general-purpose LLM CodingWriting
<role> You are an expert software engineer. </role> <instructions> Write a [programming language] function that [description of functionality] according to the requirements. </instructions> <context> The function should handle edge cases such as [edge case variable] and follow best practices for readability and performance. </context> <constraints> - Use only standard libraries. - Include inline comments explaining key steps. - Do not use external dependencies. - Limit the solution to [max lines] lines of code. </constraints> <format> Provide the code inside a triple‑backtick block with the language identifier. </format> <Tone> Professional and concise. </tone> Now generate the code as per the above instructions.
#text