Effect CommunityEC
Effect Communityโ€ข2y agoโ€ข
9 replies
Liam Butler-Lawrence

Converting fp-ts Option to effect Option

Is there any easier and/or more efficient way to bridge fp-ts Option to effect Option than:

export const bridgeOption = <A>(old: option.Option<A>): O.Option<A> =>
  option.isSome(old) ? O.some(old.value) : O.none()
Was this page helpful?