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.6.11 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.10 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.9 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.8 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.7 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.6 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.5 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.4 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.3 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.2 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.1 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.6.0 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.5.18 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.5.17 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.5.16 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.5.15 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.5.14 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.5.13 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.5.12 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt
trackler-2.0.5.11 tracks/kotlin/exercises/etl/src/example/kotlin/ETL.kt