Can You Write Pure Functions in Swift?
You bet!
5 min readJul 9, 2021
Before we start
If you are writing functions, you might be asked whether the code is a pure function or not. You’ll need to know, and you’ll need to be able to describe what it is. In steps this guide to help you out.