Inverted index: Difference between revisions
→Alternative Implementation of Generic_Inverted_Index (Ada 2012): Fix syntax of the Ada 2012 version
m (→{{header|Wren}}: Minor tidy) |
(→Alternative Implementation of Generic_Inverted_Index (Ada 2012): Fix syntax of the Ada 2012 version) |
||
Line 430:
===Alternative Implementation of Generic_Inverted_Index (Ada 2012)===
The new standard Ada 2012 simplifies the usage of containers significantly. The following runs under
<syntaxhighlight lang="ada">with Ada.Containers.Indefinite_Vectors;
Line 561:
procedure Iterate(The_Sources: Vector) is
begin
for Some_Element
Do_Something
end loop;
end Iterate;
|