rename lift to of

This commit is contained in:
Rowan 2025-03-29 06:32:39 -05:00
parent 1402219aad
commit a2e4231b06

View file

@ -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) {