Swift code: infix operator %%: MultiplicationPrecedence func %% <T: BinaryInteger> (num: T, modulus: T) -> T { (num % modulus + modulus) % modulus } print(-5 %% 3)
https://media.hachyderm.io/media_attachments/files/113/291/608/153/164/150/original/f9f6d0a7774973bc.png