F# Array2D slices
f#
Solution
Yes. It's easy to grab 2D chunks:
tmp.[10..20,30..40]
However, if you want a 1D slice, I believe you'll need to project it out of a 2D slice
tmp.[0..0,1..] |> fun arr -> Array.init 99 (fun i -> arr.[0,i])
Problem
is it possible to slice Array2D in F#? say, `let tmp =Array2D.init 100 100 (fun x y -> x * 100 + y)` how to retrieve some columns or some rows from `tmp` like `tmp.[0,1..]`?