From 1c200a9fcab73f634711ca98b4578ad11205b570 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 3 Sep 2023 22:06:54 -0400 Subject: [PATCH] feat: Array.toReadOnlyCollection --- FsBase/Extensions.fs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FsBase/Extensions.fs b/FsBase/Extensions.fs index a811410..4f7d868 100644 --- a/FsBase/Extensions.fs +++ b/FsBase/Extensions.fs @@ -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