Sha256: 092cf5168f906f9920e878d2f84249b808c863dc5cbeda88caa9a28b98cd034a

Contents?: true

Size: 242 Bytes

Versions: 68

Compression:

Stored size: 242 Bytes

Contents

object RnaTranscription {

    fun ofDna(strand: String) = strand.map {
        when (it) {
            'A' -> 'U'
            'G' -> 'C'
            'C' -> 'G'
            'T' -> 'A'
            else -> it
        }
    }.joinToString("")
}

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
trackler-1.0.3.0 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-1.0.2.1 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-1.0.2.0 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-1.0.1.2 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-1.0.1.1 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-1.0.1.0 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-1.0.0.1 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-1.0.0 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt