Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtkp9993 committed May 7, 2018
1 parent db8d674 commit 930fe8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ Array.of('cat,dog', 'fish,bird').map((a) => a.split(',')) // [['cat', 'dog'], ['

## Comonad

An object that has `extract` and `extend` functions.
`extract` ve `extend` fonksiyonlarına sahip bir nesnedir.

```js
const CoIdentity = (v) => ({
Expand All @@ -346,13 +346,13 @@ const CoIdentity = (v) => ({
})
```

Extract takes a value out of a functor.
Extract fonksiyonu bir değeri funktorun dışına çıkarır.

```js
CoIdentity(1).extract() // 1
```

Extend runs a function on the comonad. The function should return the same type as the comonad.
Extend fonksiyonu comonad üzerinde bir fonksiyon çalıştırır. Fonksiyonun çıktı tipi comonad ile aynıdır.

```js
CoIdentity(1).extend((co) => co.extract() + 1) // CoIdentity(2)
Expand Down

0 comments on commit 930fe8d

Please sign in to comment.