1
Fork 0

typescript(option): refactor: refactored iter to use always

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-12-20 14:41:13 +02:00 committed by prescientmoon
parent 04ca5c6e00
commit aa18688c7a
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -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>) => {