Modular arithmetic: Difference between revisions
Content added Content deleted
(Add swift) |
(Swift: add missing operator definition) |
||
Line 1,414: | Line 1,414: | ||
{{trans|Scala}} |
{{trans|Scala}} |
||
<lang swift> |
<lang swift>precedencegroup ExponentiationGroup { |
||
higherThan: MultiplicationPrecedence |
|||
} |
|||
infix operator ** : ExponentiationGroup |
|||
protocol Ring { |
|||
associatedtype RingType: Numeric |
associatedtype RingType: Numeric |
||