Wasaya/Operators

From Esolang
Jump to navigation Jump to search

Back to Wasaya

Monocular operators

Monocular operators
Operator Meaning
!x Return logical NOT x.
~x Return bitwise NOT x.
x++ Let x to be x+1.
x-- Let x to be x-1.

Binocular operators

Binocular operators
Operator Meaning
x+y 示例
x-y 示例
x*y 示例
x/y 示例
x//y Integer division.
x%y Modulo.
x&&y 示例
x||y 示例
x&y 示例
x^y Bitwise XOR.
x**y Power.
y 示例
x=y Assignment.
x<y 示例
x>y 示例
x==y 示例
x<=y 示例
x>=y 示例
x~=y Same as in LUA.
x<<y 示例
x>>y 示例

Trinocular operators

Trinocular operators
Operator Meaning
c?a:b If c returns true, return a, otherwise return b.

Tetrocular operators

Tetrocular operators
Operator Meaning
a\b($c, d) Get the result of a×bc/d. Such as, 1\2($1, 2) will get √2.