Sha256: 3a12ca258ab90f53a94365bdfcdc28b454c36bddd34b38def087c82788890261
Contents?: true
Size: 409 Bytes
Versions: 22
Compression:
Stored size: 409 Bytes
Contents
class Complement { private def dnaMap = ["G":"C","C":"G","T":"A","A":"U"] private def rnaMap = ["C":"G","G":"C","A":"T","U":"A"] private def transcribe(seq, seqMap) { def result = new String() seq.split('').each() { result += seqMap[it] } return result } def ofDNA(strand) { transcribe(strand, dnaMap) } def ofRNA(strand) { transcribe(strand, rnaMap) } }
Version data entries
22 entries across 22 versions & 1 rubygems