Releases: 0xLeif/FlatMany
Releases · 0xLeif/FlatMany
0.2.0
FlatMany
flatMap --> Publishers.MergeMany --> map --> collect
Usage
Example
let task = Just<[Int]>([1, 2, 3])
.flatMany {
Just("\($0 * $0)").eraseToAnyPublisher()
}
.sink { values in
print(values)
}
0.2.0 Changes
0.1.1
FlatMany
flatMap --> Publishers.MergeMany --> map --> collect
Usage
Example
let task = Just<[Int]>([1, 2, 3])
.flatMany {
Just("\($0 * $0)").eraseToAnyPublisher()
}
.sink { values in
print(values)
}
0.1.0
FlatMany
flatMap --> Publishers.MergeMany --> map --> collect
Usage
Example
let task = Just<[Int]>([1, 2, 3])
.flatMany {
Just("\($0 * $0)").eraseToAnyPublisher()
}
.sink { values in
print(values)
}