DEV Community

loading...

Discussion on: Daily Challenge #175 - Complementary DNA

Collapse
zoejm profile image
zoe-j-m

Scala

def DNA_strand(dna : String) : String = (dna flatMap ("ATCG" zip "TAGC").toMap.get ).mkString