Skip to content

0.2.0

Latest
Compare
Choose a tag to compare
@0xLeif 0xLeif released this 13 May 20:49

FlatMany

flatMap --> Publishers.MergeMany --> map --> collect

Usage

import FlatMany

Example

let task = Just<[Int]>([1, 2, 3])
    .flatMany {
        Just("\($0 * $0)").eraseToAnyPublisher()
    }
    .sink { values in
        print(values)
    }

0.2.0 Changes