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.
```js
let CoIdentity = v => ({
const CoIdentity = v => ({
val: v,
extract: this.v,
extend: f => CoIdentity(f(this))
extract() { return this.val },
extend(f) { return CoIdentity(f(this)) }
})
```