Click or drag to resize

array.join Function

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
array.join Function

The array.join inserts an expression between each element of an array and returns the result as a string.

This function is often used to convert an array to CSV format, by joining the array and inserting commas (',') between elements.

Syntax

Alchemy
array.join(ident, expr);

Nomenclature

identAn array identifier
exprAn expression to insert between elements in the array

Example

Alchemy
$name = array.new($part1,$part2,$part3);
PRINT array.join($name, " - ");

See Also

  • array.add - add an element to the tail of an array

  • array.first - get the first element of an array

  • array.flatten - expand elements of an array that are, themselves, arrays

  • array.last - get the last element of an array

  • array.new - create a new array

  • array.pop - remove and return the element at the head of the array

  • array.range - return a sub-array from a specified array

  • array.set_at - modify the data at a specified index of an array

  • array.get_at - retrieve the data at a specified index of an array

  • length - get the number of elements in an array