Updated to F# 6 arrays

This commit is contained in:
2022-01-02 15:17:36 +10:00
parent bb5e613382
commit cbd157d2c9
12 changed files with 35 additions and 36 deletions

View File

@@ -37,8 +37,8 @@ let GetFileContents (file: string) = File.ReadAllText file
let GetFileName (file: string) = Path.GetFileName file
let length (variable: 'T[]) = variable.Length
let first (array: 'a[]) = array.[0]
let last (array: 'a[]) = array.[array.Length-1]
let first (array: 'a[]) = array[0]
let last (array: 'a[]) = array[array.Length-1]
let removeFalseValues (variable: bool[]) = variable |> Array.filter id