A set of custom operators to extend the swift language
// XOR operators
var a: Bool = true
let b: Bool = false
a ^^ b // a XOR b ===> true
// Smallest operators
let a: Int = 1
let b: Int = 2
let c: Int? = nil
(a ?< b) // ====> a(1)
(b ?< a) // ====> a(1)
(a ??< c) // ====> a(1)
(c ??< a) // ====> a(1)
(c ??< c) // ====> c(nil)
// Largest operators
let a: Int = 1
let b: Int = 2
let c: Int? = nil
(a ?> b) // ====> b(2)
(b ?> a) // ====> b(2)
(a ??> c) // ====> a(1)
(c ??> a) // ====> a(1)
(c ??> c) // ====> c(nil)
- Tyler Anger - Initial work - TheAngryDarling
This project is licensed under Apache License v2.0 - see the LICENSE.md file for details