rename lift to of
This commit is contained in:
parent
1402219aad
commit
a2e4231b06
1 changed files with 2 additions and 2 deletions
|
@ -10,11 +10,11 @@ const create = (...args) => Object.freeze(Object.assign(...args))
|
|||
|
||||
function constant() { return this }
|
||||
function extract() { return this[ValueKey] }
|
||||
function extend(f) { return this.lift(f(this)) }
|
||||
function extend(f) { return this.of(f(this)) }
|
||||
function bind(fn) { return fn(this[ValueKey]) }
|
||||
function ap(other) { return other.map(this[ValueKey]) }
|
||||
function map(fn) {
|
||||
return this.lift(this.bind(fn))
|
||||
return this.of(this.bind(fn))
|
||||
}
|
||||
|
||||
function match(pattern) {
|
||||
|
|
Loading…
Add table
Reference in a new issue