Explain a technical concept for an experienced reader
Specify your existing knowledge to focus an explanation on mechanisms, design choices, limitations and a realistic example.
What to provide
- The technical topic and your relevant experience.
- Any version, implementation or source material that limits the question.
Example Illustrative example
Input
Illustrative editorial example — not a recorded model test. Topic: memoising a pure function. Background: comfortable with functions, maps and basic performance analysis.
Output
Memoisation stores a function result under a key representing its arguments. A repeated call can return the stored result instead of recomputing it. For a pure function square(n), storing square(8) = 64 is valid while its definition remains unchanged. Key construction and memory use have costs; mutable inputs or hidden dependencies can make cached results incorrect.
Improve the result
- Identify the assumptions in this explanation and describe one case where the design would fail.
How to use this prompt
State the concepts you already understand so the answer can spend more time on the unfamiliar mechanism. Include version details when behaviour depends on a particular implementation.
What to check in the result
The model may assume an implementation you did not specify. Verify version-specific behaviour against the implementation or its official documentation.