Stats

Contributors: 1 Friday, July 22, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

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.