namespace FruityFoundation.FsBase open System.Runtime.CompilerServices open FruityFoundation.Base.Structures [] type Extensions () = [] static member ToMaybe (opt : 'a option) = match opt with | Some x -> x |> Maybe.Create | None -> Maybe.Empty () [] static member ToFSharpOption (opt : 'a Maybe) = if opt.HasValue then Some opt.Value else None