The Lazy Variables: What and Why in Swift
lazy var innit (not init)
3 min readMay 1, 2020
This article covers lazy variables, why you might use them and how they are used in Swift.
Difficulty: Beginner | Easy | Normal | Challenging
Prerequisites:
- Be able to code Swift using Playgrounds
- Some knowledge of closures would be useful