Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version next

...

Array literal reference example:

ARRAYLEN
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
arraylen([A,B,C,D])

arraylen([A,B,C,D])

Output:

...

 Returns the count of elements in the array, which is 4

Column reference example:

ARRAYLEN
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
arraylen([myValues]) as:'length_myValues'

arraylen([myValues])

Output: Generates the new length_myValues column containing the  Returns the count of elements in the myValues column.

Array function example:

...

ARRAYLEN
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
arraylen(concat([colA,colB])) as:'length_myValues'

...

arraylen(concat([colA,colB]))

Output: Returns the count of elements in the array returned from concatenating colA and colB

D s
snippetSyntax

ARRAYLEN
d-codelang-syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value:
arraylen(array_ref)

arraylen(array_ref)


ArgumentRequired?Data TypeDescription
array_refYstringName of Array column, Array literal, or function returning an Array to apply to the function

...