diff --git a/typescript/option/src/helpers.ts b/typescript/option/src/helpers.ts index b248d65..fb87ce1 100644 --- a/typescript/option/src/helpers.ts +++ b/typescript/option/src/helpers.ts @@ -75,7 +75,7 @@ export const get = (option: Option) => { } export const iter = (mapper: Mapper, option: Option) => { - match(option, mapper, () => {}) + return match(option, mapper, always(None)) } export const toArray = (option: Option) => {