Contents

init(format:argumentArray:)

Creates a predicate by substituting the values in a specified array into a format string and parsing the result.

Declaration

init(format predicateFormat: String, argumentArray arguments: [Any]?)

Parameters

  • predicateFormat:

    The format string for the new predicate.

  • arguments:

    The arguments to substitute into predicateFormat. Values are substituted in the order they appear in the array.

Return Value

A new predicate by substituting the values in arguments into predicateFormat, and parsing the result.

Discussion

For details of the format of the format string and of limitations on variable substitution, see Predicate Format String Syntax.

See Also

Creating a Predicate