Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
1 people like it. Like the snippet!
This is a simple way to flat a two dimensional array in a linear one
1: 2: 3: 4:
let flat2Darray array2D = seq { for x in [0..(Array2D.length1 array2D) - 1] do for y in [0..(Array2D.length2 array2D) - 1] do yield array2D.[x, y] }