New_Key : Key_Type) return Boolean
is
begin
- for I in 1 .. Length (Left.Keys) loop
+ for J in 1 .. Length (Left.Keys) loop
declare
- K : constant Key_Type := Get (Left.Keys, I);
+ K : constant Key_Type := Get (Left.Keys, J);
begin
if not Equivalent_Keys (K, New_Key)
and then
(Find (Right.Keys, K) = 0
or else Get (Right.Elements, Find (Right.Keys, K)) /=
- Get (Left.Elements, I))
+ Get (Left.Elements, J))
then
return False;
end if;
Y : Key_Type) return Boolean
is
begin
- for I in 1 .. Length (Left.Keys) loop
+ for J in 1 .. Length (Left.Keys) loop
declare
- K : constant Key_Type := Get (Left.Keys, I);
+ K : constant Key_Type := Get (Left.Keys, J);
begin
if not Equivalent_Keys (K, X)
and then not Equivalent_Keys (K, Y)
and then
(Find (Right.Keys, K) = 0
or else Get (Right.Elements, Find (Right.Keys, K)) /=
- Get (Left.Elements, I))
+ Get (Left.Elements, J))
then
return False;
end if;
function Keys_Included (Left : Map; Right : Map) return Boolean is
begin
- for I in 1 .. Length (Left.Keys) loop
+ for J in 1 .. Length (Left.Keys) loop
declare
- K : constant Key_Type := Get (Left.Keys, I);
+ K : constant Key_Type := Get (Left.Keys, J);
begin
if Find (Right.Keys, K) = 0 then
return False;
New_Key : Key_Type) return Boolean
is
begin
- for I in 1 .. Length (Left.Keys) loop
+ for J in 1 .. Length (Left.Keys) loop
declare
- K : constant Key_Type := Get (Left.Keys, I);
+ K : constant Key_Type := Get (Left.Keys, J);
begin
if not Equivalent_Keys (K, New_Key)
and then Find (Right.Keys, K) = 0
Y : Key_Type) return Boolean
is
begin
- for I in 1 .. Length (Left.Keys) loop
+ for J in 1 .. Length (Left.Keys) loop
declare
- K : constant Key_Type := Get (Left.Keys, I);
+ K : constant Key_Type := Get (Left.Keys, J);
begin
if not Equivalent_Keys (K, X)
and then not Equivalent_Keys (K, Y)
------------
function Remove (Container : Map; Key : Key_Type) return Map is
- I : constant Extended_Index := Find (Container.Keys, Key);
+ J : constant Extended_Index := Find (Container.Keys, Key);
begin
return
- (Keys => Remove (Container.Keys, I),
- Elements => Remove (Container.Elements, I));
+ (Keys => Remove (Container.Keys, J),
+ Elements => Remove (Container.Elements, J));
end Remove;
---------------