--  A container's elements collected into an array (B7005-20, D192): a buffer twice as long
--  each time it is full, the count within it an invariant; with a filter, past the first
--  room's worth, and from an empty container.
with Verada.Containers.Unbounded.Vectors;
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
   package V is new Verada.Containers.Unbounded.Vectors (Integer);
   type Arr is array (Positive range <>) of Integer;
   C : constant V.Vector := [for I in 1 .. 20 => I * 3];
   A : constant Arr := [for E of C => E];
   B : constant Arr := [for E of C when E mod 2 = 0 => E / 2];
   D : constant Arr := [for E of V.Vector'(V.Empty) => E];
begin
   Put_Line (Integer'Image (A'Length) & Integer'Image (A (A'Last)) & Integer'Image (B'Length) & Integer'Image (B (B'First)) & Integer'Image (D'Length));
end Main;
