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-2.0.6.12 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.11 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.10 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.9 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.8 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.7 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.6 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.5 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.4 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.3 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.2 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.1 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.6.0 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.5.18 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.5.17 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.5.16 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.5.15 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.5.14 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.5.13 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt
trackler-2.0.5.12 tracks/kotlin/exercises/rna-transcription/src/example/kotlin/RnaTranscription.kt