From d54e91c6582ed160cf2f2fcf977e48b4439d133b Mon Sep 17 00:00:00 2001 From: Elizabeth Alexander Hunt Date: Sun, 18 May 2025 22:54:15 -0700 Subject: snapshot --- u/fn/either.ts | 6 +++--- u/fn/mod.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'u/fn') diff --git a/u/fn/either.ts b/u/fn/either.ts index 9dc1027..8b233bf 100644 --- a/u/fn/either.ts +++ b/u/fn/either.ts @@ -10,7 +10,7 @@ export interface IEither { errBranch: Mapper, okBranch: Mapper, ) => IEither; - fold: (folder: BiMapper) => Tt; + fold: (folder: BiMapper) => Tt; moveRight: (t: Tt) => IEither; mapRight: (mapper: Mapper) => IEither; mapLeft: (mapper: Mapper) => IEither; @@ -31,8 +31,8 @@ export class Either implements IEither { return this.mapRight(() => t); } - public fold(folder: BiMapper): R { - return folder(this.err ?? null, this.ok ?? null); + public fold(folder: BiMapper): R { + return folder(this.err ?? undefined, this.ok ?? undefined); } public mapBoth( diff --git a/u/fn/mod.ts b/u/fn/mod.ts index f0fbe88..265c6db 100644 --- a/u/fn/mod.ts +++ b/u/fn/mod.ts @@ -1,2 +1,3 @@ export * from "./callable.ts"; export * from "./either.ts"; +export * from "./memoize.ts"; -- cgit v1.2.3-70-g09d2