Custom Postfix, Prefix and Infix Operators in Swift

Nick Hanan describes how to create custom operators in Swift. Nick includes code examples for prefix, postfix and infix operators.

Food for thought:

“Custom operators can make code nigh unreadable if you are not careful, so do your best to make sure you choose a good set of symbols for your operator, and to document it very well.”