fork(2) download
  1. let xs = Array2D.init 4 4 (fun x y -> x * 4 + y)
  2. printfn "[] = %A" xs
  3. printfn "[1..2,1..2] = %A" xs.[1..2,1..2]
Success #stdin #stdout 0.19s 26200KB
stdin
Standard input is empty
stdout
[] = [[0; 1; 2; 3]
 [4; 5; 6; 7]
 [8; 9; 10; 11]
 [12; 13; 14; 15]]
[1..2,1..2] = [[5; 6]
 [9; 10]]