From dcd55c50476b445673657450fe41ed51667aaa50 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Mon, 23 Dec 2019 15:17:09 +0200 Subject: [PATCH] typescript(option): fix: compL was only used once so it wasn't worth the bundle sacrifice Signed-off-by: prescientmoon --- typescript/option/src/helpers/map.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/typescript/option/src/helpers/map.ts b/typescript/option/src/helpers/map.ts index 01f850b..672b6a8 100644 --- a/typescript/option/src/helpers/map.ts +++ b/typescript/option/src/helpers/map.ts @@ -1,11 +1,10 @@ import { match } from './match' import { Mapper } from '../internalTypes' import { Option, Some, None } from '../types' -import { compL } from '@thi.ng/compose' export const map = ( mapper: Mapper, option: Option ): Option => { - return match(compL(mapper, Some), None, option) + return match(v => Some(mapper(v)), None, option) }