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
Overload + operator (and other arithmetic operators) to allow both int and real arguments. If there are no clues in the argument types, it should default to int. For example:
- fun plus x y = x + y;
val plus = fn : int -> int -> int
- fun plus2 x y = x + y + 0.0;
val plus2 = fn : real -> real -> real
The text was updated successfully, but these errors were encountered:
Overload
+
operator (and other arithmetic operators) to allow bothint
andreal
arguments. If there are no clues in the argument types, it should default toint
. For example:The text was updated successfully, but these errors were encountered: