diff --git a/typescript/option/src/helpers/count.ts b/typescript/option/src/helpers/count.ts index 6cdb30d..b47ef46 100644 --- a/typescript/option/src/helpers/count.ts +++ b/typescript/option/src/helpers/count.ts @@ -1,4 +1,4 @@ import { isSome } from './isSome' -import { compL } from '@thi.ng/compose' +import { Option } from '../types' -export const count = compL(isSome, Number) +export const count = (option: Option) => Number(isSome(option))