Stats

Contributors: 1
2016-07-22
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Operators are Functions

Download swift eBook

Example

Operators such as +, -, ?? are a kind of function named using symbols rather than letters. They are invoked differently from functions:

  • Prefix: -x
  • Infix: x + y
  • Postfix: x++

You can read more about basic operators and advanced operators in The Swift Programming Language.