IndexOfArray constructor

IndexOfArray(
  1. dynamic array,
  2. dynamic value,
  3. dynamic start,
  4. dynamic end,
)

Creates $indexOfArray operator expression

  • array - Can be any valid expression as long as it resolves to an array.
  • value - Can be any valid expression.
  • start - Optional. An integer, or a number that can be represented as integers (such as 2.0), that specifies the starting index position for the search. Can be any valid expression that resolves to a non-negative integral number. If unspecified, the starting index position for the search is the first element.

Implementation

IndexOfArray(array, value, start, end)
    : super('indexOfArray',
          AEList([array is List ? AEList(array) : array, value, start, end]));