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:

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

arrayrightindexof(["A","B","C","D"],"C")

Output: Computes  Returns the right-index of the element "C" in the array, which is 2 in an 0-based index from left to right

Column reference example:

ARRAYRIGHTINDEXOF
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
arrayrightindexof([myValues],myElement) as:myRightIndexOfmyValues'

arrayrightindexof([myValues],myElement)

Output: Generates the new myRightIndexOfmyValues column containing the  Returns the right-search in the myValues arrays for the elements listed in the myElement column.

D s
snippetSyntax

ARRAYRIGHTINDEXOF
d-codelang-syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value:
arrayrightindexof(array_ref,my_element)

arrayrightindexof(array_ref,my_element)


ArgumentRequired?Data TypeDescription
array_refYarray or stringName of Array column, Array literal, or function returning an Array to apply to the function
my_elementYanyThe element to locate in the array, searching from right to left

...