Merge pull request #43 from brunops/fix-comonad-example

Fix Comonad example
This commit is contained in:
hemanth.hm 2016-06-10 11:20:25 +05:30 committed by GitHub
commit b528aa9adc

View file

@ -442,10 +442,10 @@ compose(foo, identity) ≍ compose(identity, foo) ≍ foo
> An object that has `extract` and `extend` functions. > An object that has `extract` and `extend` functions.
```js ```js
let CoIdentity = v => ({ const CoIdentity = v => ({
val: v, val: v,
extract: this.v, extract() { return this.val },
extend: f => CoIdentity(f(this)) extend(f) { return CoIdentity(f(this)) }
}) })
``` ```