Syntax
Operators
Arithmetic
+ addition
- subtraction
/ division
* multiplication
^ power
​
Logic
|| logical or
&& logical and
=> then
| else
​
Bitwise
& bitwise and
||| bitwise or
>> shift right
<< shift right
Comparison
== equality
!= not equal
< less than
> greater than
<= less than or equal
>= greater than or equal
​
​
: append head
<- append tail
++ concatenation
[ ] list
{ } tuple
" " string constructor
!! index
, separator
.. range specifier
:: pass to
Operators
Other
>>= chain
,, pair
( ) parentheses
; end of statement
@ read-as
= assignment
\ lambda
# comment start/end
~ compose
' ' character
-> lambda
. decimal point/field access
<space> application
$ application
_ ignore
` ` infix operator
? null value
+= add and assign
-= subtract and assign
/= divide and assign
*= multiply and assign
^= raise to and assign
Keywords
True - boolean constant
False - boolean constant
def - function definition
class -
interface -
if - if statement
struct - user-defined structure
enum - enumerated type
oper - user-defined operator
while - conditional loop
for - enhanced for loop
case - switch without follow through
cascade - switch statement
break
continue
default
let
where
extends
implements
in
stop
skip