Effect CommunityEC
Effect Community2y ago
21 replies
gg

Seeking Simplified Option.orElseEffect Function

hi, looking for something in the shape of Option.orElseEffect(<effect>)
currently find myself writing
Effect.flatMap(o => Option.isSome(o)?Effect.succeed(o):<call my effect here>)
and feel there should be something better
Was this page helpful?