Skip to content

Commit

Permalink
Merge pull request #4648 from Masynchin/fold-left-docs
Browse files Browse the repository at this point in the history
Fix foldLeft nomenclature signature
  • Loading branch information
danicheg authored Sep 1, 2024
2 parents 4e976f9 + 3421eaa commit 93b0148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/nomenclature.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Like the previous section, we use the `E` for the error parameter type.
| Type | Method Name | Constraints
| ------------- |--------------|-----------
| `F[A] => A` | `fold` | `A: Monoid`
| `F[A] => B => ((B,A) => B) => F[B]` | `foldLeft`
| `F[A] => B => ((B,A) => B) => B` | `foldLeft`
| `F[A] => (A => B) => B` | `foldMap` | `B: Monoid`
| `F[A] => (A => G[B]) => G[B]` | `foldMapM` | `G: Monad` and `B: Monoid`
| `F[A] => (A => B) => Option[B]` | `collectFirst` | The `A => B` is a `PartialFunction`
Expand Down

0 comments on commit 93b0148

Please sign in to comment.