Look at the existing documentation files (e.g., README.md or chapter files) in the learn redux repository. Identify where concepts are explained. Add a clear definition and example of pure vs impure functions, referencing Redux reducers. The issue has 5 comments that may provide additional context; review them for any specific requests.