Release 3.2
Release 3.2
Features
Functions
New functional support for array, with the following functions:
concat
: Concatenate two arrays or stringsfilter
: Filter array or string elements according to the specified predicatemap
: Map array elements to new values according to the specified transform functionreduce
: Reduce array elements to a new value according to the specified reducer functionsort
: Sort the array or string
The function, or arrow, expression idiom has been added to the assembler syntax to support many of the above built-in functions. Function expressions work like callbacks and lambdas in other programming languages. See the wiki for usage and examples.
The .stringify
directive
To generate string byte output from non-string values, ordinarily the format
function would be used. A new directive .stringify
allows the same in a compact format.