From a2e4231b0635a8839f4c244190ba39140a0f1b1e Mon Sep 17 00:00:00 2001 From: rowan Date: Sat, 29 Mar 2025 06:32:39 -0500 Subject: [PATCH] rename lift to of --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {