Update comonad to match spec

This commit is contained in:
Jethro Larson 2016-02-22 09:29:43 -08:00
parent ed415a1003
commit b3c5eeb7b3

View file

@ -312,7 +312,7 @@ id.map(increment) // Identity(Identity(2))
let CoIdentity = v => ({
val: v,
extract: this.v,
extend: f => f(this)
extend: f => CoIdentity(f(this))
})
```