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) }