--  Iterated associations beside named ones (B7005-31) and over an array's components for a
--  dimension before the last (B7005-32), D192: one iteration over the span of the static
--  choices, each position's value a case on it; the rows of a grid assigned in a loop.
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
   type Vector is array (1 .. 6) of Integer range 0 .. 100;
   type Grid is array (1 .. 3, 1 .. 3) of Integer range 0 .. 100;
   type Row is array (1 .. 3) of Integer range 0 .. 100;
   V : constant Vector := (1 => 10, for K in 2 .. 4 => K * K, 6 => 60, others => 7);
   W : constant Vector := (for K in 4 .. 6 => K, 1 .. 3 => 0);
   R : constant Row := (5, 6, 7);
   G : constant Grid := (for X of R => (others => X));
   H : constant Grid := (for X of R => (for J in 1 .. 3 => X + J));
begin
   pragma Assert (V (3) = 9 and V (5) = 7 and W (5) = 5 and G (2, 3) = 6 and H (3, 1) = 8);
   for X of V loop Put (Integer'Image (X)); end loop;
   for X of W loop Put (Integer'Image (X)); end loop;
   for I in G'Range (1) loop
      for J in G'Range (2) loop
         Put (Integer'Image (G (I, J)) & Integer'Image (H (I, J)));
      end loop;
   end loop;
   New_Line;
end Main;
