Array
public extension Array where Element: LaunchArgumentValue
-
Elements of the array formatter as a launch argument.
Declaration
Swift
var launchArgument: String { get }
-
Combines together two arrays of objects implementing
LaunchArgumentValue
protocol.Note
This works different to+
operation, because types of arrays may differ.Declaration
Swift
func combine<T>(values: [T]) -> [LaunchArgumentValue] where T : LaunchArgumentValue
Parameters
other
Other array to use in join.
Return Value
Array of combined elements.
-
Elements of the array formatted as a launch environment value.
Declaration
Swift
var launchEnvironment: String { get }
-
Reduce array of tuples
(Any: Hashable, Any)
to dictionary.Declaration
Swift
func reduceToDictionary<Key, Value>(mapToTuple: (Element) -> (Key, Value)) -> [Key : Value] where Key : Hashable