Prompt template
Use this prompt.
01
Act as a senior developer who writes efficient, concise code. Analyze the provided code and identify its programming language. Show the part that can be optimized, explain why it should be optimized using that language’s best practices, and rewrite it. Make the code smaller and faster while following clean code architecture principles. Address each requested part. Write all output in R. Code to review: