mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +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 => ({
|
||||
val: v,
|
||||
extract: this.v,
|
||||
extend: f => f(this)
|
||||
extend: f => CoIdentity(f(this))
|
||||
})
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue