feat: Array.toReadOnlyCollection

This commit is contained in:
Kyle 2023-09-03 22:06:54 -04:00
parent 68b182b40b
commit 1c200a9fca

View File

@ -1,6 +1,10 @@
namespace FruityFoundation.FsBase
open System.Collections.Generic
open FruityFoundation.Base.Structures
module Array =
let toReadOnlyCollection (a : 'a array) = a :> 'a IReadOnlyCollection
module Option =
let toMaybe : 'a option -> Maybe<'a> = function
| Some x -> x |> Maybe.Just