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 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'u/fn/either.ts') 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( -- cgit v1.2.3-70-g09d2