Skip to content

Commit

Permalink
Update operations.md (#8694)
Browse files Browse the repository at this point in the history
Fixed an typo in the `scan` section
  • Loading branch information
gcsolaroli committed Apr 5, 2024
1 parent 4322d2b commit 7537684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/stream/zstream/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ val s3 = ZStream.range(1, 11).filterNot(_ % 2 == 0)

## Scanning

Scans are like folds, but with a history. Like folds, they take a binary operator with an initial value. A fold combines elements of a stream and emits every intermediary result as an output of the stream:
Scans are like folds, but with a history. Like folds, they take a binary operator with an initial value. A scan combines elements of a stream and emits every intermediary result as an output of the stream:

```scala mdoc:silent:nest
val scan = ZStream(1, 2, 3, 4, 5).scan(0)(_ + _)
Expand Down

0 comments on commit 7537684

Please sign in to comment.