I have made a tuple-list, but I can't seem to find the sum of the lists. Do I need to make a function for the sum, or can I call each list fst snd in the sum code?
let (startBoard : board) = ([0; 3; 3; 3; 3; 3], [0; 3; 3; 3; 3; 3])
How do I find the sum of the lists? I tried to make a sum function and to call fst and snd but can't seem to make it work...
let sum1 (fst : int list) : int =
let s = List.sum fst
Hope I made my self clear :)