The "Unknown:"s below indicate that an entry is incomplete.
indentation(1) | block (grouping statements, especially when statements are not expressions) |
# | commenting (until end of line) |
< > <= >= | comparison |
min / max | comparison (min / max (binary or more)) |
a <=> b | comparison (returns 3 values (i.e. inferior, equal or superior)) |
== != | equality / inequality (deep) |
( ... ) | grouping expressions |
indentation | grouping expressions |
space(2) | grouping expressions |
case-sensitive | tokens (case-sensitivity (keywords, variable identifiers...)) |
[_a-z][_a-zA-Z0-9]*[!?']* | tokens (variable identifier regexp) |
underscores | tokens (what is the standard way for scrunching together multiple words) |
= | variable assignment or declaration (both) |
:= | variable assignment or declaration (both) |
Unknown:
documentation comment
information about the current line and file
breaking lines (useful when end-of-line and/or indentation has a special meaning)
force garbage collection
(a >) | partial application (in the examples below, a normal call is "f(a,b)") (give the first argument to operator ">") |
f(a,) | partial application (in the examples below, a normal call is "f(a,b)") (give the first argument) |
(> a) | partial application (in the examples below, a normal call is "f(a,b)") (give the second argument to operator ">") |
f(,b) | partial application (in the examples below, a normal call is "f(a,b)") (give the second argument) |
a, b -> ... | anonymous function |
f(a,b,...) | function call |
f() | function call (with no parameter) |
~ | function composition |
f(para1, para2, ...) = ... | function definition |
Unknown:
function return value
identity function
raise | exception (throwing) |
if c then ... | if_then |
if c then b1 else b2 | if_then_else |
loop | loop (forever loop) |
val. v1 -> ... v2 -> ... _ -> ... | multiple selection (switch) |
; | sequence |
end-of-line | sequence |
Unknown:
loop (while condition do something)
loop (do something until condition)
loop (for each value in a numeric range, 1 increment (see also the entries about ranges))
loop (for each value in a numeric range, 1 decrement)
loop (for each value in a numeric range, free increment)
loop (for "a la C" (while + initialisation))
breaking control flow (returning a value)
breaking control flow (continue / break)
exception (catching)
!! | annotation (or variable declaration) |
n = t | declaration |
Unknown:
cast
mutability, constness (type of a mutable value)
mutability, constness (type of a constant value)
object.method(para) | method invocation |
object.method | method invocation (with no parameter) |
Unknown:
object creation
object cloning
manually call an object's destructor
class declaration
testing class membership
get the type/class corresponding to an object/instance/value
methods available
inheritance
current instance
accessing parent method
:: | package scope |
Unknown:
declare
import
"z" | character "z" |
Char | character type name |
to_string | convert something to a string (see also string interpolation) |
times | duplicate n times |
simple print (on strings) | |
println(3) | simple print (on strings) |
printf | simple print (printf-like) |
sprintf | sprintf-like |
+ | string concatenation |
== != | string equality & inequality |
"... {v} ..." | strings (with interpolation of variables) |
qq(...(... {v} ...)...) | strings (with interpolation of variables) |
q(...(...)...) | strings (with no interpolation of variables) |
String | type name |
Unknown:
strings (end-of-line (without writing the real CR or LF character))
multi-line
serialize (marshalling)
unserialize (un-marshalling)
string size
upper / lower case character
uppercase / lowercase / capitalized string
ascii to character
character to ascii
accessing n-th character
extract a substring
locate a substring
locate a substring (starting at the end)
False | false value |
not(4) | logical not |
|| / && | logical or / and (short circuit) |
True | true value |
Unknown:
type name
unzip | 2 lists from a list of couples |
: | adding an element at the beginning (list cons) (return the new list (no side-effect)) |
push | adding an element at the end (return the new list (no side-effect)) |
foldl | f(... f(f(init, e1), e2) ..., en) |
foldr | f(e1, f(e2, ... f(en, init) ...)) |
find | find an element |
each | for each element do something |
shift! | get the first element and remove it |
pop! | get the last element and remove it |
member? | is an element in the list |
exists? | is the predicate true for an element |
all? | is the predicate true for every element |
each_with_index | iterate with index |
filter | keep elements (matching) |
+ | list concatenation |
[ a, b, c ](5) | list constructor |
flatten | list flattening (one level depth) |
zip | list of couples from 2 lists |
to_list | list out of a bag |
size | list size |
a[i] | list/array indexing |
partition | partition a list: elements matching, elements non matching |
uniq | remove duplicates |
reverse | reverse |
minimum / maximum | smallest / biggest element |
sort(6) | sort |
sort_by | sort |
map | transform a list (or bag) in another one |
Unknown:
type name
adding an element at index
first element
all but the first element
last element
transform two lists in parallel
split a list
join a list of strings in a string using a glue string
lookup an element in a association list
((a)) | computable tuple (these are a kind of immutable lists playing a special role in parameter passing) (1-uple) |
() | computable tuple (these are a kind of immutable lists playing a special role in parameter passing) (empty tuple) |
t | computable tuple (these are a kind of immutable lists playing a special role in parameter passing) (using a tuple for a function call) |
a .. b | range (inclusive .. inclusive) |
r { field } | record (selector) |
a, b, c | tuple constructor |
typ1, ..., typn | tuple type |
Unknown:
reference (pointer) (creation)
reference (pointer) (dereference)
optional value (null value)
optional value (value)
optional value (type name)
optional value (null coalescing)
record (type declaration)
union type declaration
enumerated type declaration
dictionary (type name)
dictionary (constructor)
dictionary (access)
dictionary (has the key ?)
dictionary (remove by key)
dictionary (list of keys)
dictionary (list of values)
dictionary (merge)
+ / - / * / / | addition / subtraction / multiplication / division |
** | exponentiation (power) |
- | negation |
1000, 1000.0, 1E3(7) | numbers syntax (floating point) |
1_000 | numbers syntax (integer thousand-separator) |
1000 | numbers syntax (integers) |
mathematical | operator priorities and associativities (addition vs multiplication) |
Unknown:
type name
numbers syntax (integers in base 2, octal and hexadecimal)
random (random number)
random (seed the pseudo random generator)
square root / e-exponential / absolute value
trigonometry (basic)
trigonometry (inverse)
logarithm (base e)
logarithm (base 10)
modulo
truncate / round / floor / ceil
bitwise operators