From 9a1679a379bd13ea4d82f692fa3ca64880541112 Mon Sep 17 00:00:00 2001 From: Ronnie Holm Date: Tue, 27 Oct 2020 14:46:45 +0100 Subject: [PATCH] Remove warnings and make code more idiomatic F# --- FSharpExample/Program.fs | 916 ++++++++++++++++++--------------------- 1 file changed, 429 insertions(+), 487 deletions(-) diff --git a/FSharpExample/Program.fs b/FSharpExample/Program.fs index d2627ffa5..acb47eb01 100644 --- a/FSharpExample/Program.fs +++ b/FSharpExample/Program.fs @@ -1,506 +1,448 @@ -// Learn more about F# at http://fsharp.org - -open Terminal.Gui -open System -open System.Collections.Generic +open System open System.Diagnostics open System.Globalization -open System.Reflection +open System.IO open NStack +open Terminal.Gui -type Demo() = class end - let ustr (x:string) = ustring.Make(x) - let mutable ml2 = Unchecked.defaultof