96677aa499
I know this is dumb, but it's the best way for be to crystalise my thoughts about how this will work.
11 lines
214 B
Text
11 lines
214 B
Text
defimpl Modulus, for: Native.Integer64, as: ->
|
|
|
|
def modulo other: Native.Integer64, as: ->
|
|
Huia.Primitive.i64_modulo(lhs: self, rhs: other)
|
|
end
|
|
|
|
def modulo other: Any, as: ->
|
|
Result.none()
|
|
end
|
|
|
|
end
|