mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-11 13:06:42 +00:00
Update comonad to match spec
This commit is contained in:
parent
ed415a1003
commit
b3c5eeb7b3
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ id.map(increment) // Identity(Identity(2))
|
||||||
let CoIdentity = v => ({
|
let CoIdentity = v => ({
|
||||||
val: v,
|
val: v,
|
||||||
extract: this.v,
|
extract: this.v,
|
||||||
extend: f => f(this)
|
extend: f => CoIdentity(f(this))
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue