String
- A String is a sequence of characters or symbols with a dynamic length.
Arithmetic ¶
Operator | Description |
---|---|
+ |
Concatenation |
Info
Logical comparisons ¶
Operator | Description |
---|---|
== |
Equal to |
!= |
Not equal to |
Info
Logical comparisons return a Boolean.
Warning
Example
1 2 3 4 5 |
|
Built-in functions ¶
length¶
to_number¶
1 |
|
Warning
- String must be a valid integer or floating point number. Otherwise, the program halts with this error:
split¶
split(source: String, delimiter: String) ➟ Array[String]
Example
1 2 |
|
insert¶
insert(source: String, index: Number, new_value: String) ➟ Array[String]
1 |
|
-
index must be a positive integer and within the length of the array.
-
Otherwise, the program halts with either of these errors:
remove¶
remove(source: String, index: Number) ➟ String
1 |
|
-
index must be a positive integer and within the length of the array.
-
Otherwise, the program halts with either of these errors: