For more playgrounds like this, visit http://hackswift.co/playgrounds
Swift Operators Playground
It covers the syntax for all Swift operators along with different ways to use them
- Assignment Operator
- Arithmetic Operators (along with Overflow operators)
- Compound Assignment Operators
- Comparison Operators
- Ternary Conditional Operator
- Range Operators
- Logical Operators
- Bitwise Operators
Keep this handy and copy-paste the required snippets into your projects.
Feel free to suggest modifications, report issues or improvements in the issues section.
Follow us on Twitter : @hackswift