Search results

concatMap :: forall a b. (a -> Array b) -> Array a -> Array b

Apply a function to each element in an array, and flatten the results into a single, new array.

concatMap (split $ Pattern " ") ["Hello World", "other thing"]
   = ["Hello", "World", "other", "thing"]
P purescript-arrays M Data.Array
concatMap :: forall a b. (a -> NonEmptyArray b) -> NonEmptyArray a -> NonEmptyArray b
P purescript-arrays M Data.Array.NonEmpty
concatMap :: forall a b. (a -> List b) -> List a -> List b

Apply a function to each element in a list, and flatten the results into a single, new list.

Running time: O(n), where n is the total number of elements.

P purescript-lists M Data.List
concatMap :: forall a b. (a -> List b) -> List a -> List b

Apply a function to each element in a list, and flatten the results into a single, new list.

Running time: O(n), where n is the total number of elements.

P purescript-lists M Data.List.Lazy
concatMap :: forall a b. (a -> NonEmptyList b) -> NonEmptyList a -> NonEmptyList b
P purescript-lists M Data.List.Lazy.NonEmpty
concatMap :: forall a b. (a -> NonEmptyList b) -> NonEmptyList a -> NonEmptyList b
P purescript-lists M Data.List.NonEmpty
concatMap :: forall a b. (a -> Seq b) -> Seq a -> Seq b

O(m*n), where m is the number of sequences, and n is the length of the longest sequence within it. Map a function over a sequence and then flatten the results.

P purescript-sequences M Data.Sequence
concatMap :: forall b a. (a -> Observable b) -> Observable a -> Observable b

Equivalent to mergeMap (a.k.a, >>=) EXCEPT that, unlike mergeMap, the next bind will not run until the ObservableImpl generated by the projection function (arg2) completes. That is, composition is sequential, not concurrent. Warning: if source values arrive endlessly and faster than their corresponding inner ObservableImpls can complete, it will result in memory issues as inner ObservableImpls amass in an unbounded buffer waiting for their turn to be subscribed to. marble diagram

P purescript-rxps M RxJS.Observable
concatMap :: forall b a. (a -> ArrayView b) -> ArrayView a -> ArrayView b
P purescript-array-views M Data.ArrayView.Internal
concatMap :: forall b a. (a -> NonEmptyArrayView b) -> NonEmptyArrayView a -> NonEmptyArrayView b
P purescript-array-views M Data.ArrayView.NonEmpty
concatMap :: forall b a. (a -> List b) -> List a -> List b

Apply a function to each element in a list, and flatten the results into a single, new list.

Running time: O(n*log(m), where n is the length of the given list and m is the length of the lists returned by the function.

P purescript-rrb-list M RRBList
concatMap :: forall a f o i r. Foldable f => (i -> f o) -> Run (Transformer i o r) a

Composition of map followed by concat.

P purescript-run-streaming M Run.Streaming.Prelude
concatMap :: forall b a. (a -> Observable b) -> Observable a -> Observable b

Equivalent to mergeMap (a.k.a, >>=) EXCEPT that, unlike mergeMap, the next bind will not run until the ObservableImpl generated by the projection function (arg2) completes. That is, composition is sequential, not concurrent. Warning: if source values arrive endlessly and faster than their corresponding inner ObservableImpls can complete, it will result in memory issues as inner ObservableImpls amass in an unbounded buffer waiting for their turn to be subscribed to. marble diagram

P purescript-rx-observable M RxJS.Observable
concatMap :: forall b a. AsyncSubject a -> (a -> AsyncSubject b) -> AsyncSubject b

Equivalent to mergeMap (a.k.a, >>=) EXCEPT that, unlike mergeMap, the next bind will not run until the AsyncSubject generated by the projection function (arg2) completes. That is, composition is sequential, not concurrent. Warning: if source values arrive endlessly and faster than their corresponding inner AsyncSubjects can complete, it will result in memory issues as inner AsyncSubjects amass in an unbounded buffer waiting for their turn to be subscribed to.

P purescript-rxjs M RxJS.AsyncSubject
concatMap :: forall b a. BehaviorSubject a -> (a -> BehaviorSubject b) -> BehaviorSubject b

Equivalent to mergeMap (a.k.a, >>=) EXCEPT that, unlike mergeMap, the next bind will not run until the BehaviorSubject generated by the projection function (arg2) completes. That is, composition is sequential, not concurrent. Warning: if source values arrive endlessly and faster than their corresponding inner BehaviorSubjects can complete, it will result in memory issues as inner BehaviorSubjects amass in an unbounded buffer waiting for their turn to be subscribed to.

P purescript-rxjs M RxJS.BehaviorSubject
concatMap :: forall b a. Observable a -> (a -> Observable b) -> Observable b

Equivalent to mergeMap (a.k.a, >>=) EXCEPT that, unlike mergeMap, the next bind will not run until the Observable generated by the projection function (arg2) completes. That is, composition is sequential, not concurrent. Warning: if source values arrive endlessly and faster than their corresponding inner Observables can complete, it will result in memory issues as inner Observables amass in an unbounded buffer waiting for their turn to be subscribed to. marble diagram

P purescript-rxjs M RxJS.Observable
concatMap :: forall b a. ReplaySubject a -> (a -> ReplaySubject b) -> ReplaySubject b

Equivalent to mergeMap (a.k.a, >>=) EXCEPT that, unlike mergeMap, the next bind will not run until the ReplaySubject generated by the projection function (arg2) completes. That is, composition is sequential, not concurrent. Warning: if source values arrive endlessly and faster than their corresponding inner ReplaySubjects can complete, it will result in memory issues as inner ReplaySubjects amass in an unbounded buffer waiting for their turn to be subscribed to.

P purescript-rxjs M RxJS.ReplaySubject
concatMapTo :: forall c b a. AsyncSubject a -> AsyncSubject b -> (a -> b -> AsyncSubject c) -> AsyncSubject c

The type signature explains it best. Warning: Like concatMap, composition is sequential.

P purescript-rxjs M RxJS.AsyncSubject
concatMapTo :: forall c b a. BehaviorSubject a -> BehaviorSubject b -> (a -> b -> BehaviorSubject c) -> BehaviorSubject c

The type signature explains it best. Warning: Like concatMap, composition is sequential.

P purescript-rxjs M RxJS.BehaviorSubject
concatMapTo :: forall c b a. Observable a -> Observable b -> (a -> b -> Observable c) -> Observable c

The type signature explains it best. Warning: Like concatMap, composition is sequential. marble diagram

P purescript-rxjs M RxJS.Observable
concatMapTo :: forall c b a. ReplaySubject a -> ReplaySubject b -> (a -> b -> ReplaySubject c) -> ReplaySubject c

The type signature explains it best. Warning: Like concatMap, composition is sequential.

P purescript-rxjs M RxJS.ReplaySubject

No further results.