ArrayFunction

public class ArrayFunction

Function provies array functions.

  • 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: Any, value: Any?) -> Expression

    Parameters

    expression

    The expression that evluates 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: Any) -> Expression

    Parameters

    expression

    The expression that evluates to an array.

    Return Value

    The ARRAY_LENGTH(expr) function.