let total = [| "1X2"; "3X4"; "5X6" |]
let oddEven = total
|> Array.map(fun x -> x.Split('X'))
I have an array of string, which is total in above example, I want to split the array by "X", as the oddEven in the above example, but I want to return 2 arrays of strings:
let odd = [| 1; 3; 5 |] and let even = [| 2; 4; 6 |]
It could be an easy task, but I can not figure it out now. Any help is greatly appreciated! Thanks,