Split constructor

Split(
  1. dynamic string,
  2. dynamic delimiter
)

Creates $split operator expression

Divides a string into an array of substrings based on a delimiter. $split removes the delimiter and returns the resulting substrings as elements of an array. If the delimiter is not found in the string, $split returns the original string as the only element of an array.

  • string - The string to be split. string expression can be any valid expression as long as it resolves to a string.
  • delimiter - The delimiter to use when splitting the string expression. delimiter can be any valid expression as long as it resolves to a string.

Implementation

Split(string, delimiter) : super('split', AEList([string, delimiter]));