Sha256: 2c9c5ff12f8627ec3b79aa5fad40d06214dbf1e18b2ad965b52987b525b77054
Contents?: true
Size: 748 Bytes
Versions: 85
Compression:
Stored size: 748 Bytes
Contents
class Error() {} String|Error transcription(String dna) { return dna.fold("" of String|Error)((String|Error r, Character c) => if (is Error r) then (r) else (switch (c) case ('G') r + "C" case ('C') r + "G" case ('T') r + "A" case ('A') r + "U" else (Error()))); }
Version data entries
85 entries across 85 versions & 1 rubygems