I'm quite new in F#.
I guess arrays are still collections, so I could use Seq
for iterating the array like this:
[|"a"; "b"|] |> Seq.map (fun f -> printfn "a") |> ignore;;
But that doesn't work - it prints nothing.
On the other hand if I use Array
, it prints the strings:
[|"a"; "b"|] |> Array.map (fun f -> printfn "a") |> ignore;;
Why is that?