Skip to content

Commit ce4cc3e

Browse files
authored
Merge pull request #235 from sid-cypher/master
minor fixes: Kleisli typo, idempotence as noun, liftA2 result
2 parents 12c1111 + 2a3b998 commit ce4cc3e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ __Table of Contents__
3434
* [Continuation](#continuation)
3535
* [Pure Function](#pure-function)
3636
* [Side effects](#side-effects)
37-
* [Idempotent](#idempotent)
37+
* [Idempotence](#idempotence)
3838
* [Point-Free Style](#point-free-style)
3939
* [Predicate](#predicate)
4040
* [Contracts](#contracts)
@@ -56,7 +56,7 @@ __Table of Contents__
5656
* [Monoid](#monoid)
5757
* [Monad](#monad)
5858
* [Comonad](#comonad)
59-
* [Kleisi Composition](#kleisi-composition)
59+
* [Kleisli Composition](#kleisli-composition)
6060
* [Applicative Functor](#applicative-functor)
6161
* [Morphism](#morphism)
6262
* [Homomorphism](#homomorphism)
@@ -291,7 +291,7 @@ const differentEveryTime = new Date()
291291
console.log('IO is a side effect!')
292292
```
293293

294-
## Idempotent
294+
## Idempotence
295295

296296
A function is idempotent if reapplying it to its result does not produce a different result.
297297

@@ -519,7 +519,7 @@ const mult = a => b => a * b
519519
const liftedMult = liftA2(mult) // this function now works on functors like array
520520

521521
liftedMult([1, 2], [3]) // [3, 6]
522-
liftA2(a => b => a + b)([1, 2], [3, 4]) // [4, 5, 5, 6]
522+
liftA2(a => b => a + b)([1, 2], [30, 40]) // [31, 41, 32, 42]
523523
```
524524

525525
Lifting a one-argument function and applying it does the same thing as `map`.
@@ -726,7 +726,7 @@ CoIdentity(1).extract() // 1
726726
CoIdentity(1).extend((co) => co.extract() + 1) // CoIdentity(2)
727727
```
728728

729-
## Kleisi Composition
729+
## Kleisli Composition
730730

731731
An operation for composing two [monad](#monad)-returning functions (Kleisli Arrows) where they have compatible types. In Haskell this is the `>=>` operator.
732732

0 commit comments

Comments
 (0)