12 lines
214 B
Text
12 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
|