Sha256: 7aca4f941a3388a8c5c3ac07d2aecd9144cff031c4008095198f13545a440161

Contents?: true

Size: 382 Bytes

Versions: 115

Compression:

Stored size: 382 Bytes

Contents

using System.Collections.Generic;

public class ETL
{
    public static IDictionary<string, int> Transform(IDictionary<int, IList<string>> old)
    {
        var transformed = new Dictionary<string, int>();

        foreach (var pair in old)
            foreach (var item in pair.Value)
                transformed.Add(item.ToLower(), pair.Key);

        return transformed;
    }
}

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
trackler-2.0.8.14 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.13 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.12 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.11 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.10 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.9 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.8 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.7 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.6 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.5 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.4 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.3 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.2 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.8.1 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.7.0 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.6.44 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.6.43 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.6.42 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.6.41 tracks/csharp/exercises/etl/Example.cs
trackler-2.0.6.40 tracks/csharp/exercises/etl/Example.cs