Skip to content

Commit 33d40dc

Browse files
Boris MarinovBoris Marinov
Boris Marinov
authored and
Boris Marinov
committed
fixes
1 parent 69d5dc8 commit 33d40dc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ curriedSum(40)(2) // 42.
7575

7676
## Composition
7777

78-
> A function which combines two values of a given type (usually also some kind of functions) to a third value of the same type.
78+
> A function which combines two values of a given type (usually also some kind of functions) into a third value of the same type.
7979
80-
The most straightforward type of composition, is called "normal function composition".
81-
It allows you to combines functions which accept and return a single value.
80+
The most straightforward type of composition is called "normal function composition".
81+
It allows you to combines functions that accept and return a single value.
8282

8383
```js
8484
const compose = (f, g) => a => f(g(a)) // Definition
85-
const floorAndToString = compose((val)=> val.toString(), Math.floor)(222.44) //Usage
85+
const floorAndToString = compose((val)=> val.toString(), Math.floor) //Usage
8686
floorAndToString(121.212121) // "121"
8787

8888
```
@@ -92,7 +92,7 @@ floorAndToString(121.212121) // "121"
9292
## Purity
9393

9494
> A function is said to be pure if the return value is only determined by its
95-
input values, without any side effects and mutations.
95+
input values, without any side effects.
9696

9797
```js
9898
let greet = "yo";
@@ -181,7 +181,7 @@ Points-free function definitions look just like normal assignments without `func
181181
Object.freeze({name: 'John', age: 30}) // The `freeze` function enforces immutability.
182182
(a) => a
183183
```
184-
Note that the value-containing structures defined below such as [Functor](#functor), [Monad](#monad) etc. are themselves values. This means, among other things, that they can be nested within each other.
184+
Note that value-containing structures such as [Functor](#functor), [Monad](#monad) etc. are themselves values. This means, among other things, that they can be nested within each other.
185185

186186
---
187187

0 commit comments

Comments
 (0)