Skip to content

Commit

Permalink
Merge pull request ReactiveCocoa#2717 from seltzered/patch-1
Browse files Browse the repository at this point in the history
Clarify flatten works on both Signal & SignalProducer
  • Loading branch information
NachoSoto committed Feb 10, 2016
2 parents 94efab0 + b697125 commit 8b599ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/BasicOperators.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ The `zipWith` operator works in the same way, but as an operator.

## Flattening producers

The `flatten` operator transforms a `SignalProducer`-of-`SignalProducer`s into a single `SignalProducer` whose values are forwarded from the inner producer in accordance with the provided `FlattenStrategy`.
The `flatten` operator transforms a stream-of-streams into a single stream - where values are forwarded from the inner stream in accordance with the provided `FlattenStrategy`. The flattened result becomes that of the outer stream type - i.e. a `SignalProducer`-of-`SignalProducer`s or `SignalProducer`-of-`Signal`s gets flattened to a `SignalProducer`, and likewise a `Signal`-of-`SignalProducer`s or `Signal`-of-`Signal`s gets flattened to a `Signal`.

To understand, why there are different strategies and how they compare to each other, take a look at this example and imagine the column offsets as time:
To understand why there are different strategies and how they compare to each other, take a look at this example and imagine the column offsets as time:

```Swift
let values = [
Expand Down

0 comments on commit 8b599ed

Please sign in to comment.