Array repeat

Supported in: Batch, Streaming

Returns an array with the contents of array concatenated value times.

Expression categories: Array

Declared arguments

  • Array - Array to be repeated.
    Expression<Array<T>>
  • Value - Number of times to concatenate 'array'.
    Expression<Integer>

Type variable bounds: T accepts AnyType

Output type: Array<T>

Examples

Example 1: Base case

Argument values:

  • Array: [ 1, 2 ]
  • Value: 2

Output: [ 1, 2, 1, 2 ]


Example 2: Null case

Argument values:

  • Array: array
  • Value: value
arrayvalueOutput
[ 1, 2, 3 ]nullnull
null1null
nullnullnull