mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 19:08:18 +02:00
27 lines
299 B
ObjectPascal
27 lines
299 B
ObjectPascal
program Project1;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
uses
|
|
fgl;
|
|
|
|
type
|
|
TMyMap = specialize TFPGMap<string, string>;
|
|
|
|
var
|
|
m: TMyMap;
|
|
c: Char;
|
|
begin
|
|
m := TMyMap.Create;
|
|
m.Add('a', 'hello');
|
|
m.Add('b', ' ');
|
|
m.Add('c', 'world!');
|
|
|
|
for c := 'a' to 'c' do
|
|
Write(m[c]);
|
|
Writeln;
|
|
|
|
m.Free;
|
|
end.
|
|
|