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:

ARRAYCROSS
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
arraycross[["A","B"],["1","2","3"]] )

arraycross[["A","B"],["1","2","3"]] )


Output:
Generates Returns a single array:

Code Block
[["A","1"],["A","2"],["A","3"],["B","1"],["B","2"],["B","3"]] 

Column reference example:

ARRAYCROSS
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
arraycross(array1,array2,array3) as:'cross_Array'

arraycross(array1,array2,array3)

Output: Generates a new cross_Array column containing a Returns an array containing a single array listing all combinations of elements between array1, array2 , and array3.

D s
snippetSyntax

ARRAYCROSS
d-codelang-syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value:
arraycross(array_ref1,array_ref2)

arraycross(array_ref1,array_ref2)


ArgumentRequired?Data TypeDescription
array_ref1Ystring or arrayName of first column or first array literal to apply to the function
array_ref2Ystring or arrayName of second column or second array literal to apply to the function

...