You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, Mizur could not proceed "non-linear" operation, ie: 1cm * 2cm.
@doc """
Multiplies a `typed_value` by a `number`. The subtype of the return value
will be the subtype of the left `typed_value`.
"""
@spec times(t, number) :: t
def times(a, b) when is_number(b) do
x = unwrap(a)
%{ a | value: (x * b)}
end
Actually, you can do 1cm * x and not 1cm * 2cm (because x.cm * y.cm should equals x*y cm2.
The goal of this issue is to manage a "base notion" and preserve the coercion function.
Good Luck
The text was updated successfully, but these errors were encountered:
Actually, Mizur could not proceed "non-linear" operation, ie: 1cm * 2cm.
Actually, you can do
1cm * x
and not1cm * 2cm
(becausex.cm * y.cm
should equalsx*y cm2
.The goal of this issue is to manage a "base notion" and preserve the coercion function.
Good Luck
The text was updated successfully, but these errors were encountered: