Sha256: ecf762985cfd14bdb5e0bd5f1a4b0bd5f762d60b00048fe87251e0543dddc5ed
Contents?: true
Size: 368 Bytes
Versions: 193
Compression:
Stored size: 368 Bytes
Contents
class RnaTranscription { String toRna(String dna) { return dna.split("").map((c) { switch (c) { case "G": return "C"; case "C": return "G"; case "T": return "A"; case "A": return "U"; default: throw new ArgumentError("Invalid input"); } }).join(""); } }
Version data entries
193 entries across 193 versions & 1 rubygems