Sha256: 5d44cfcca0ffe9b0eb4cc69493b9199b621ceec18d22e786c3d74ea7e0a5ab16

Contents?: true

Size: 154 Bytes

Versions: 396

Compression:

Stored size: 154 Bytes

Contents

object Acronym {
    fun generate(phrase: String) = Regex("[A-Z]+[a-z]*|[a-z]+").findAll(phrase).map { it.value.first().toUpperCase() }.joinToString("")
}

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.118 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.117 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.116 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.115 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.114 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.113 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.111 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.110 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.109 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.108 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.107 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.106 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.105 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.104 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.103 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.102 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.101 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.100 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt
trackler-2.2.1.99 tracks/kotlin/exercises/acronym/.meta/src/reference/kotlin/Acronym.kt