src/funcynim/operators

  Source   Edit

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

func divFloat[T: SomeFloat](x, y: T): T
  Source   Edit
func divInt[T: SomeInteger](x, y: T): T
  Source   Edit
proc equal[T](x, y: T): bool
  Source   Edit
proc greater[T](x, y: T): bool
  Source   Edit
proc greaterOrEq[T](x, y: T): bool
  Source   Edit
proc less[T](x, y: T): bool
  Source   Edit
proc lessOrEq[T](x, y: T): bool
  Source   Edit
func logicAnd(x, y: bool): bool {....raises: [], tags: [].}
  Source   Edit
func logicNot(x: bool): bool {....raises: [], tags: [].}
  Source   Edit
func logicOr(x, y: bool): bool {....raises: [], tags: [].}
  Source   Edit
proc minus[T](x, y: T): T
  Source   Edit
func modulo[T: SomeInteger](x, y: T): T
  Source   Edit
proc mult[T](x, y: T): T
  Source   Edit
func next[T: Ordinal](x: T): T
  Source   Edit
proc plus1[T](x: T): T
  Source   Edit
proc plus[T](x, y: T): T
  Source   Edit
func prev[T: Ordinal](x: T): T
  Source   Edit