ArrayExpression

public class ArrayExpression

Array expression.

  • Creates a variable expression. The variable are used to represent each item in an array in the quantified operators (ANY/ANY AND EVERY/EVERY IN SATISFIES ) to evaluate expressions over an array.

    Declaration

    Swift

    public static func variable(_ name: String) -> Expression

    Parameters

    name

    The variable name.

    Return Value

    A variable expression.

  • Creates an ANY Quantified operator (ANY IN SATISFIES ) with the given variable name. The method returns an IN clause object that is used for specifying an array object or an expression evaluated as an array object, each item of which will be evaluated against the satisfies expression. The ANY operator returns TRUE if at least one of the items in the array satisfies the given satisfies expression.

    Declaration

    Swift

    public static func any(_ variable: String) -> ArrayExpressionIn

    Parameters

    variable

    The variable name.

    Return Value

    An In object.

  • Creates an ANY AND EVERY Quantified operator (ANY AND EVERY IN SATISFIES ) with the given variable name. The method returns an IN clause object that is used for specifying an array object or an expression evaluated as an array object, each of which will be evaluated against the satisfies expression. The ANY AND EVERY operator returns TRUE if the array is NOT empty, and at least one of the items in the array satisfies the given satisfies expression.

    Declaration

    Swift

    public static func anyAndEvery(_ variable: String) -> ArrayExpressionIn

    Parameters

    variable

    The variable name.

    Return Value

    An In object.

  • Creates an EVERY Quantified operator (EVERY IN SATISFIES ) with the given variable name. The method returns an IN clause object that is used for specifying an array object or an expression evaluated as an array object, each of which will be evaluated against the satisfies expression. The EVERY operator returns TRUE if the array is empty OR every item in the array satisfies the given satisfies expression.

    Declaration

    Swift

    public static func every(_ variable: String) -> ArrayExpressionIn

    Parameters

    variable

    The variable name.

    Return Value

    An In object.