Function | Description |
mload | |
import | |
__ismainsrc__ | |
Function | Description |
set_typename | |
Function | Description |
== | |
!= | |
copy | |
str | |
Function | Description |
== | |
!= | |
Function | Description |
< | |
> | |
<= | |
>= | |
== | |
!= | |
! | |
Function | Description |
+ | |
- | |
* | |
/ | |
% | |
+= | |
-= | |
*= | |
/= | |
%= | |
** | |
++x | |
x++ | |
--x | |
x-- | |
u- | |
< | |
> | |
<= | |
>= | |
== | |
!= | |
Function | Description |
+ | |
- | |
* | |
/ | |
+= | |
-= | |
*= | |
/= | |
++x | |
x++ | |
--x | |
x-- | |
u- | |
round | |
< | |
> | |
<= | |
>= | |
== | |
!= | |
Function | Description |
+ | |
* | |
+= | |
*= | |
< | |
<= | |
>= | |
== | |
!= | |
at(idx: int) -> string | Returns the character at index idx , or nil if out of range |
[idx: int] -> string | Returns the character at index idx , or nil if out of range |
Examples:
let io = import('std/io');
let hello = 'hello!';
io.println(hello.at(0));
io.println(hello[6]);
Output:
h
(nil)