Effect CommunityEC
Effect Community2y ago
7 replies
Bilal

Running an Effect on `None` Value of an `Option` in TypeScript

quick question, I'd like to run an effect if the value is None of an Option, is there a straight forward way, or do I need to do:

const value: Option.Option<T> = ...

Option.match(value, {onNone: () => applyNone, onSome: Effect.succeed}


?
Was this page helpful?