Binary Operation

BinOp.Op

Operator

+

Math: Add / Plus / Positive

-

Math: Subtract / Minus / Negative

*

Math: Multiply

/

Math: Divide

**

Math: Power

%

Math: Modulo

!

Logic: Not (Boolean)

&&

Logic: And (Boolean)

||

Logic: Or (Boolean)

&

Bit: And (Integer, Boolean)

|

Bit: Or (Integer, Boolean)

^

Bit: Xor (Integer, Boolean)

<<

Bit: Left Shift (Integer)

>>

Bit: Right Shift (Integer)

BinOp.LHS | RHS

<Bool> <BinOp.Op> <Bool>
<Int> <BinOp.Op> <Int>
<Float> <BinOp.Op> <Float>
<List> <BinOp.Op> <List>
<String> <BinOp.Op> <String>

<Array[Int]> <BinOp.Op> <Int>
<Array[Float]> <BinOp.Op> <Int>
<Array[Float]> <BinOp.Op> <Float>

Last updated