Type Method

match(description:any:_:)

Creates a Predicate<Input>.

Declaration

static func match(description: String? = nil, any type: Input.Type = Input.self, _ predicate: @escaping (Input) -> Bool) -> Predicate<Input>

Return Value

A new Predicate<Input>.

Parameters

description

The description of the Predicate.

type

The type to match.

predicate

The block that will be used to verify that the entry statisfies the Predicate.