You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[<AutoOpen>]moduleCEUtilities =[<RequireQualifiedAccess>]moduleDecode =letresult(x :Result<'t,string>):Decoder<'t>=match x with| Ok t -> Decode.succeed t
| Error message -> Decode.fail message
letrequireSome(message :string)(x :Option<'t>):Decoder<'t>=match x with| Some x -> Decode.succeed x
| None -> Decode.fail message
Something like this...
Highly convenient!
The text was updated successfully, but these errors were encountered: