diff --git a/src/index.js b/src/index.js index 782611d..4edcfd3 100644 --- a/src/index.js +++ b/src/index.js @@ -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) {