I wanted to iterate through an array and every element has three integers. Is it possible to iterate through every integer within this array? The code below doesn't work because it gives the following error:
"The type 'int * int * int' is not compatible with the type 'seq<'a>'"
module Practice2
let dataSet =
[|10, 20, 10; -20, -30, 10; 30, 50, 0;|]
|> Seq.mapi (fun i elem ->
elem
|> Seq.map (fun a -> printf("TEST"))
);
I am completely new to F# so please correct me if this is completely the wrong approach.