Contents

init(mappingTransform:)

Declares support for the contains operator between an optional Array property and user-supplied values.

Declaration

init(mappingTransform: @escaping (InputType) -> ComparatorMappingType) where PropertyType : ExpressibleByNilLiteral, InputType : Equatable, InputType == PropertyType.UnwrappedType.Element, PropertyType.UnwrappedType : _SequenceIntentValue, PropertyType.UnwrappedType : Sequence

Parameters

  • mappingTransform:

    Closure that transforms the user-supplied value into the ComparatorMappingType output type.

See Also

Creating a comparator