Procedures to alias common math and logical operators.
They may be handy to avoid quoted calls in multiline statements or to pass an operator as a procedure in a call.
Procs
proc plus[T](x, y: T): T
- Source Edit
proc plus1[T](x: T): T
- Source Edit
proc minus[T](x, y: T): T
- Source Edit
proc mult[T](x, y: T): T
- Source Edit
proc divInt[T: SomeInteger](x, y: T): T
- Source Edit
proc divFloat[T: SomeFloat](x, y: T): T
- Source Edit
proc modulo[T: SomeInteger](x, y: T): T
- Source Edit
proc less[T](x, y: T): bool
- Source Edit
proc lessOrEq[T](x, y: T): bool
- Source Edit
proc equal[T](x, y: T): bool
- Source Edit
proc greaterOrEq[T](x, y: T): bool
- Source Edit
proc greater[T](x, y: T): bool
- Source Edit