mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-11 13:06:42 +00:00
Syntax and typo fixed
This commit is contained in:
parent
50c6ed4e09
commit
afb6bd9fc2
1 changed files with 5 additions and 3 deletions
|
|
@ -100,7 +100,9 @@ executions with the the same input parameters.
|
||||||
|
|
||||||
> A function whose definition does not include information regarding its arguments.
|
> A function whose definition does not include information regarding its arguments.
|
||||||
|
|
||||||
`let abs = Math.abs`
|
```js
|
||||||
|
let abs = Math.abs
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -158,8 +160,8 @@ let rand = function*() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
```
|
```js
|
||||||
let randIter = random();
|
let randIter = rand();
|
||||||
randIter.next(); // Each exectuion gives a random value, expression is evluated on need.
|
randIter.next(); // Each exectuion gives a random value, expression is evluated on need.
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue