-
map(_:
Extension method) Declaration
Swift
public func map<P, C>(_ f: (A) -> C) -> P where P : SymmetricPair, C == P.A
Return Value
A
SymmetricPair
with its members transformed by the given function.
-
contains(_:
Extension method) Declaration
Swift
@inlinable public func contains(_ value: A) -> Bool
Return Value
true
if one of the values contained herein is equivalent to the givenvalue
. Otherwise,false
.