@@ -19,43 +19,44 @@ But this is not::
22−PureScript supports the following unary operators (in precedence order):
22+Binary operators in PureScript are just regular functions. The Prelude defines a number of operators which correspond to Javascript's operators.
24+The Prelude defines the following functions which correspond to Javascript's unary operators::
24−== =======================
26+========== ======== =======================
25− Meaning
27+Function Operator Meaning
26−== =======================
28+========== ======== =======================
27−\- Numeric negation
29+negate \- Numeric negation
28−! Boolean negation
30+not ! Boolean negation
29−~ Binary negation
31+complement ~ Binary negation
30−\+ Unary plus (numeric)
31−== =======================
32+========== ======== =======================
33−and the following binary operators (in precedence order):
34+and the following binary operators::
35−==== =====================
36+========== =========== =====================
36− Meaning
37+Function JS Operator Meaning
37−==== =====================
38+========== =========== =====================
38−\+ Numeric addition
39+(\+) \+ Numeric addition
39−\- Numeric subtraction
40+(\-) \- Numeric subtraction
40−\* Numeric multiplication
41+(\*) \* Numeric multiplication
41−/ Numeric division
42+(/) / Numeric division
42−% Numeric modulus
43+(%) % Numeric modulus
43−== Equality check
44+(==) == Equality check
44−!= Inequality check
45+(/=) != Inequality check
45−< Less than
46+(<) < Less than
46−<= Less than or equal
47+(<=) <= Less than or equal
47−> Greater than
48+(>) > Greater than
48−>= Greater than or equal
49+(>=) >= Greater than or equal
49−&& Boolean AND
50+(&&) && Boolean AND
50−|| Boolean OR
51+(||) || Boolean OR
51−& Binary AND
52+(&) & Binary AND
52−\| Binary OR
53+(\|) \| Binary OR
53−^ Binary XOR
54+(^) ^ Binary XOR
54−<< Shift Left
55+shl << Shift Left
55−>> Shift Right
56+shr >> Shift Right
56−\>>> Zero-Fill Shift Right
57+zshr \>>> Zero-Fill Shift Right
57−++ String concatenation
58+(++) + String concatenation
58−==== =====================
59+========== =========== =====================
60Literal Values
61Literal Values
61--------------
62--------------
@@ -185,7 +186,7 @@ A pattern match failure will generate a runtime exception, just as in the case o
188−In addition to the standard operators, user-defined infix operators can be created by enclosing names in parentheses.
189+User-defined infix operators can be created by enclosing names in parentheses.
190E.g. to create a synonym for string concatenation::
191E.g. to create a synonym for string concatenation::