Built-in Features
[
Front page
|
List of pages
|
Search
|
Recent changes
|
Backup
|
Help
]
Start:
[[Documentation]]
*Built-in Types
The currently supported built-in types are integers,
floating point numbers, and strings.
Some other data types (e.g., arrays) are currently suppor...
library API.
**Numbers
Integer arithmetics and floating point number arithmetics...
Some features, for example bit-shift operator or cosine f...
are not yet implemented.
Atoms are treated as numbers only if
they are unary (i.e., one-argument) atoms.
***Syntax
X = -2, p(345)
X = 2.0, p(-3.14e-10)
***Operations
Currently, the following operations are available:
int(+Float,-Int) - cast
float(+Int,-Float) - cast
'+'(+Int,+Int,-Int) - integer operation, as well...
'+.'(+Float,+Float,-Float) - floating operation, as well...
**Strings
Strings (such as "abc") are unary atom names and
can be distinguished from symbols (such as 'abc' or just ...
Wtring literals are treated as strings
only if they are unary;
otherwise, they are treated as symbols.
***Syntax
X = "abc", p("abc\\de\"\nf\
g")
X = "abc", p([:abc\de"
fg:])
The former argument to p is in C-like format
and the latter is in 'multiline-quoted format',
expressing the same string.
Note that
the literal [::] expresses an empty string ("").
***Operations
Operations on strings are supported by the library API
(string module).
End:
[[Documentation]]
*Built-in Types
The currently supported built-in types are integers,
floating point numbers, and strings.
Some other data types (e.g., arrays) are currently suppor...
library API.
**Numbers
Integer arithmetics and floating point number arithmetics...
Some features, for example bit-shift operator or cosine f...
are not yet implemented.
Atoms are treated as numbers only if
they are unary (i.e., one-argument) atoms.
***Syntax
X = -2, p(345)
X = 2.0, p(-3.14e-10)
***Operations
Currently, the following operations are available:
int(+Float,-Int) - cast
float(+Int,-Float) - cast
'+'(+Int,+Int,-Int) - integer operation, as well...
'+.'(+Float,+Float,-Float) - floating operation, as well...
**Strings
Strings (such as "abc") are unary atom names and
can be distinguished from symbols (such as 'abc' or just ...
Wtring literals are treated as strings
only if they are unary;
otherwise, they are treated as symbols.
***Syntax
X = "abc", p("abc\\de\"\nf\
g")
X = "abc", p([:abc\de"
fg:])
The former argument to p is in C-like format
and the latter is in 'multiline-quoted format',
expressing the same string.
Note that
the literal [::] expresses an empty string ("").
***Operations
Operations on strings are supported by the library API
(string module).
Page: