Clutterless Project Namespaces
Swift allows us to add new behavior to an existing class, structure, enumeration and protocol by a unique feature known as extension.
1 2 3 |
private extension Int { var squared: Int { return self * self } } |