>>-(_:_:)
public func >>-<T, U>(_ arg: [T], _ transform: (T) -> [U]) -> [U]
Sequentially compose two actions, passing any value produced by the first as an argument to the second.
Example:
let packageToOperation: (Package) -> [Operation]
let packages: [Package] = ...
// operations is [Operation]
let operations = packages >>- packageToOperation
-
Declaration
Swift
public func >>-<T, U>(_ arg: [T], _ transform: (T) -> [U]) -> [U]