mam Array2D z 0 i 1:Array2D do Array
let rnd = System.Random()
let a = Array2D.init n n (fun i j -> int(System.Math.Round(rnd.NextDouble()/index)))
muszę obliczyć liczbę „1 'elementów, coś jak:
a |> Array.filter (fun x -> x == 1)
ale 'a' jest Array2D (nie Array) więc zastanawiam się, czy istnieje standardowy sposób przekształcenia Array2D w Array?