Sha256: c967ba42c2dd7ffad304075132787b255744d44ae8c77fa9a35f16e32e653949

Contents?: true

Size: 215 Bytes

Versions: 67

Compression:

Stored size: 215 Bytes

Contents

object ETL {
    fun transform(old: Map<Int, Collection<String>>): Map<String, Int> {
        return old.flatMap { mapEntry -> mapEntry.value.map { word -> Pair(word.toLowerCase(), mapEntry.key) } }.toMap()
    }
}

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
trackler-2.0.3.1 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.3.0 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.2.0 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.1.2 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.1.1 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.1.0 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.10 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.9 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.8 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.7 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.6 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.5 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.4 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.3 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.2 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.1 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.0.0 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-1.0.4.1 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-1.0.4.0 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-1.0.3.0 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt