egslava
val complements = CharArray('Z'.toInt()){ when (it.toChar()){ 'A' -> 'T' 'T' -> 'A' 'G' -> 'C' 'C' -> 'G' else -> '-' }} val Char.complement1: Char get() = complements[toInt()]