src/main/scala/transcription.scala

1
2
3
4
5
6
7
8
9
object Dna {
  val NucleotideMap = Map('C' -> 'G', 'G' -> 'C', 'A' -> 'U', 'T' -> 'A')

  def apply() = new Dna()
}

class Dna {
  def toRna(dna: String) = dna.map(Dna.NucleotideMap)
}

@abo64 thinks this looks great

Comments


You're not logged in right now. Please login via GitHub to comment