Module array

Module array 

Source
Expand description

Array-related formatting helpers. Pan-style array manipulation helpers.

Functionsยง

array
Returns the 1-based item from text split by sep.
arrayboth
Returns unique elements present in both arrays.
arraybuild
Placeholder that requires database scanning and formula evaluation.
arraybuild_from_iter
Joins iterator items with sep into a single array string.
arraychange
Replaces the 1-based item with value when it exists.
arraycolumn
Extracts a column from a row/column delimited table.
arraycontains
Returns true if any element equals needle.
arraydeduplicate
Removes duplicate elements and returns a sorted array.
arraydelete
Deletes count items starting at the 1-based item index.
arraydeletevalue
Removes alternating matches of value.
arraydifference
Returns unique elements in a1 that are not in a2.
arrayelement
Returns the 1-based element index containing position.
arrayfirst
Returns the first element in the array.
arrayinsert
Inserts count empty elements at the 1-based item position.
arrayitem
Alias for array.
arraylast
Returns the last element in the array.
arraylefttrim
Removes count elements from the start of the array.
arraylookup
Looks up key in key/value rows and returns its value.
arraymerge
Zips two arrays, joining corresponding elements with joiner.
arraynotcontains
Returns true if no element equals needle.
arraynumericsort
Returns the array sorted by numeric value.
arraynumerictotal
Sums numeric elements of the array.
arrayrandomize
Deterministically shuffles elements based on the input.
arrayrange
Returns a slice from first to last (inclusive), 1-based.
arrayreplacevalue
Replaces alternating matches of oldvalue with newvalue.
arrayreverse
Reverses the order of the array elements.
arrayreverselookup
Looks up key as a value and returns its row key.
arrayscan
Placeholder that requires export/arraybuild iteration context.
arraysearch
Searches for a wildcard pattern and returns a 1-based index.
arrayselected
Returns elements from text that correspond to non-empty elements in selection.
arrayselectedbuild
Placeholder that requires database scanning and formula evaluation.
arraysize
Returns the number of elements, including empty ones.
arraysort
Returns the array sorted lexicographically.
arraystrip
Removes empty elements from the array.
arraytableceiling
Returns the value for key or the next greater table key.
arraytablefloor
Returns the value for key or the next lesser table key.
arraytrim
Removes count elements from the end of the array.
arrayunpropagate
Replaces consecutive duplicates with empty elements.
lineitemarray
Placeholder that requires database field context.
makenumberedarray
Builds a separator-joined sequence from start to end (inclusive).