The goal is not to pollute my current module with characters from import.
Note that it is open Arraynot allowed in F # (contrary to OCaml). You can use abbreviations for modules, but only in the global area:
module A = Microsoft.FSharp.Collections.Array
Microsoft.FSharp.Collections.Array Array. , :
let numOfEvenIntegersSquaredGreaterThan n =
[|1..100|] |> Array.filter (fun x -> x % 2 = 0)
|> Array.map (fun x -> x * x)
|> Array.filter (fun x -> x > n)
|> Array.length
, Seq:
let elementsGreaterThan n =
[1..100] |> Seq.filter (fun x -> x > n)