This table lists the built-in language functions for day to day data processing tasks.
The functions expect sane arguments and will result in runtime error or bogus result if supplied with invalid data.
System functions
|
Name |
Description |
Usage Example |
|---|---|---|
|
|
Aborts script execution by triggering runtime error, with message |
|
|
|
Count array/list elements of |
|
|
|
Returns a list of |
|
|
|
Defines a new named function. Read more in section Defining your own |
Read more in section Defining your own |
|
|
Calculates SHA256 message digest (known also as hash) of the scalar value provided in |
|
|
|
Defines a new in-place function, not named. Read more in section Defining your own |
Read more in section Defining your own |
|
|
Returns the length (number of characters) of If |
|
|
|
Controls variables' lexical scope. Read more in section Defining your own |
Read more in section Defining your own |
|
|
Applies Quicksort algorithm and user defined comparison function |
|
|
|
Scalar to list - takes a scalar value of the variable and separates it into single characters, returning a list of them. |
|
|
|
Un-defines a function named |
|
|
|
Removes array/list element by provided access definition in |
|
|
|
Controls variables' lexical scope. Read more in section Defining your own |
Read more in section Defining your own |
Data processing functions
|
Name |
Description |
Usage Example |
|
|
Executes GZIP compression algorithm on the provided scalar data in |
|
|
|
Executes Base64 decoding algorithm on the provided scalar string in |
|
|
|
Executes GZIP decompression algorigthm on the provided scalar data in |
|
|
|
Executes Base64 encoding algorithm on the provided scalar data in |
|
Text processing functions
|
Name |
Description |
Usage Example |
|---|---|---|
|
|
Puts |
|
|
|
Runs a full regular expression matching on Returns a complex table with matches and subgroups, offsets, indexes and values. Optionally parameter Control params
For further information, read here: More details on Regular Expressions processing |
Greedy
Not greedy
|
|
|
Parses XML text in Parameter |
|
|
|
Converts a tree structure, as created by Parameter |
|
|
|
Runs XPath matching on XML string |
|
|
|
Finds position of first occurence of |
|
|
|
Parses JSON text in Parameter |
Similar to |
|
|
Converts a tree structure, as created by Parameter |
|
|
|
Gets |
|
|
|
Converts |
|
|
|
Replaces all occurrences of |
|
|
|
Finds position of first occurence of |
|
|
|
Gets |
|
|
|
Replaces all occurrences of |
|
|
|
Gets |
|
|
|
Returns a character based on provided 32 bit Unicode character number |
|
|
|
Converts |
|
Mathematical functions
|
Name |
Description |
Usage Example |
|---|---|---|
|
|
Absolute value of the number |
|
|
|
Returns closest integer not smaller than |
|
|
|
Returns closest integer
|
|
|
|
Calculates the logarithm in base |
|
|
|
Calculates the |
|
|
|
Draws a decimal number between never less than |
|
|
|
Rounds the number |
|
|
|
Returns number sign (1 or -1) of |
|
|
|
Calculates the square root of |
|
|
|
Truncates the decimal value of |
|