Can You Write Pure Functions in Swift?
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.