Sha256: 3ef6d8f6b8beb9f7e562a78162d548f490a5195a3296f1d75eebdfb643daabbc

Contents?: true

Size: 590 Bytes

Versions: 346

Compression:

Stored size: 590 Bytes

Contents

unit uETL;

interface
uses System.Generics.Collections;

type
  ETL = class
    class function Transform(old: TDictionary<integer, TList<string>>): TDictionary<string, integer>;
  end;

implementation
uses SysUtils;

class function ETL.Transform(old: TDictionary<Integer,TList<System.string>>): TDictionary<string, integer>;
var intlistPair: TPair<integer, TList<string>>;
    iteminList: string;
begin
  result := TDictionary<string, integer>.Create;

  for intlistPair in old do
    for iteminList in intlistPair.Value do
      result.Add(iteminList.ToLower, intlistPair.key);
end;

end.

Version data entries

346 entries across 346 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.179 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.178 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.177 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.176 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.175 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.174 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.173 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.172 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.171 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.170 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.169 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.167 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.166 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.165 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.164 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.163 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.162 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.161 tracks/delphi/exercises/etl/uETLexample.pas
trackler-2.2.1.160 tracks/delphi/exercises/etl/uETLexample.pas