<^(_:_:)
public func <^<T, U: Hashable, V>(_ transform: T, _ arg: [U: V]) -> [U: T]
Replace all locations in the input with the same value.
The default definition is map { _ in transform }
,
but this may be overridden with a more efficient version.
The name of this operation is allusion in <^>
.
Note the similarities between their types:
(<^ ) : ( U) -> [V: T] -> [V: U]
(<^>) : (T -> U) -> [V: T] -> [V: U]
Usually this operator is used for debugging.
See also
<^>
operator.
-
Declaration
Swift
public func <^<T, U: Hashable, V>(_ transform: T, _ arg: [U: V]) -> [U: T]