Sha256: 00d5459845e619c3cfc440c0279994b052c848087490a14f4b5fe94998fbc370

Contents?: true

Size: 301 Bytes

Versions: 396

Compression:

Stored size: 301 Bytes

Contents

struct ETL {
    static func transform(_ old: [Int: [String] ] ) -> [String: Int] {
        var result = [String: Int]()
        for (score, letters) in old {
            for letter in letters {
                result[letter.lowercased()] = score
            }
        }
        return result
    }
}

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.138 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.137 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.136 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.135 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.134 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.133 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.132 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.131 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.130 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.129 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.128 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.127 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.126 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.125 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.124 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.123 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.122 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.121 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.120 tracks/swift/exercises/etl/Sources/EtlExample.swift