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.180 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.179 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.178 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.177 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.176 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.175 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.174 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.173 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.172 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.171 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.170 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.169 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.167 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.166 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.165 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.164 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.163 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.162 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.161 tracks/swift/exercises/etl/Sources/EtlExample.swift
trackler-2.2.1.160 tracks/swift/exercises/etl/Sources/EtlExample.swift