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 = <T>(option: Option<T>) => { } export const iter = <T>(mapper: Mapper<T, void>, option: Option<T>) => { - match(option, mapper, () => {}) + return match(option, mapper, always(None)) } export const toArray = <T>(option: Option<T>) => {