Skip to content

Release 3.2

Compare
Choose a tag to compare
@informedcitizenry informedcitizenry released this 09 Sep 17:12
· 72 commits to master since this release

Release 3.2

Features

Functions

New functional support for array, with the following functions:

  • concat: Concatenate two arrays or strings
  • filter: Filter array or string elements according to the specified predicate
  • map: Map array elements to new values according to the specified transform function
  • reduce: Reduce array elements to a new value according to the specified reducer function
  • sort: 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.