Skip to content

Releases: 0xLeif/FlatMany

0.2.0

13 May 20:49
Compare
Choose a tag to compare

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

0.1.1

13 May 14:02
Compare
Choose a tag to compare

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.1.0

13 May 13:53
a495951
Compare
Choose a tag to compare

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)
    }