Sha256: c24f12b3ffaf8a3d1ffa77305580dff310080e1b6d1f1b311f6aa223e4cafd6b

Contents?: true

Size: 261 Bytes

Versions: 126

Compression:

Stored size: 261 Bytes

Contents

object ETL {

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

}

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
trackler-2.2.1.58 tracks/kotlin/exercises/etl/.meta/src/reference/kotlin/ETL.kt
trackler-2.2.1.57 tracks/kotlin/exercises/etl/.meta/src/reference/kotlin/ETL.kt
trackler-2.2.1.56 tracks/kotlin/exercises/etl/.meta/src/reference/kotlin/ETL.kt
trackler-2.2.1.55 tracks/kotlin/exercises/etl/.meta/src/reference/kotlin/ETL.kt
trackler-2.2.1.54 tracks/kotlin/exercises/etl/.meta/src/reference/kotlin/ETL.kt
trackler-2.2.1.53 tracks/kotlin/exercises/etl/.meta/src/reference/kotlin/ETL.kt