operators
Here is a list of unary and binary operators in the language. Many of them can have methods installed for handling arguments of specific types.
adjacency operator
-- function application
,
-- separates elements of lists or sequences
;
-- statement separator
=
-- assignment
<-
-- assignment with left hand side evaluated
:=
-- assignment of method or new local variable
==
-- equal
!=
-- not equal
===
-- strictly equal
=!=
-- strictly not equal
<
-- less than
<=
-- less than or equal
=>
-- option
>
-- greater than
>=
-- greater than or equal
?
-- comparison
or
-- or
and
-- and
not
-- negation
..
-- sequence builder
+
-- addition
-
-- subtraction
- (unary)
-- minus
*
-- multiplication
/
-- division
//
-- quotient
%
-- remainder
^
-- power
/^
-- divided power
!
-- factorial
++
-- direct sum
**
-- tensor product
<<
-- file output, bit shifting
>>
-- bit shifting
_
-- subscripting
.
-- hash table access or assignment
.?
-- test for hash table access
#
-- hash table access
#?
-- test for hash table access
|
-- horizontal concatenation of strings or matrices
||
-- vertical concatentation of strings or matrices
&
-- bit-wise and
:
-- ideal quotient, repetitions
@
-- mapping a function over a list
@@
-- composing functions
&&
--
^^
--
~
--
Go to
main index
.
Go to
concepts index
.