ArrayFunction
public final class ArrayFunction
Array function factory.
-
Creates an ARRAY_CONTAINS(expr, value) function that checks whether the given array expression contains the given value or not.
Declaration
Swift
public static func contains(_ expression: ExpressionProtocol, value: ExpressionProtocol) -> ExpressionProtocol
Parameters
expression
The expression that evaluates to an array.
value
The value to search for in the given array expression.
Return Value
The ARRAY_CONTAINS(expr, value) function.
-
Creates an ARRAY_LENGTH(expr) function that returns the length of the given array expression.
Declaration
Swift
public static func length(_ expression: ExpressionProtocol) -> ExpressionProtocol
Parameters
expression
The expression that evaluates to an array.
Return Value
The ARRAY_LENGTH(expr) function.