Skip to content

Commit

Permalink
Fix foldLeft nomenclature signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Masynchin committed Aug 31, 2024
1 parent 4e976f9 commit 3421eaa
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 3421eaa

Please sign in to comment.