Module TaglessFinal.BinaryOperator

This module provides a type that represents Python numerical binary operators.

type 'a t = private {
add : 'a;(*

Represents Python operator +.

*)
sub : 'a;(*

Represents Python operator -.

*)
mult : 'a;(*

Represents Python operator *.

*)
matmult : 'a;(*

Represents Python operator @, as specified in PEP 465.

As of Python 3.11, no builtin Python types implement this operator.

*)
div : 'a;(*

Represents Python operator /.

*)
mod_ : 'a;(*

Represents Python operator %.

*)
pow : 'a;(*

Represents Python operator **.

*)
lshift : 'a;(*

Represents Python operator <<.

*)
rshift : 'a;(*

Represents Python operator >>.

*)
bitor : 'a;(*

Represents Python operator |.

*)
bitxor : 'a;(*

Represents Python operator ^.

*)
bitand : 'a;(*

Represents Python operator &.

*)
floordiv : 'a;(*

Represents Python operator //.

*)
}
val make : add:'a -> sub:'a -> mult:'a -> matmult:'a -> div:'a -> mod_:'a -> pow:'a -> lshift:'a -> rshift:'a -> bitor:'a -> bitxor:'a -> bitand:'a -> floordiv:'a -> unit -> 'a t

Constructor of t.