1
1
Fork 0
exercism/jq/rna-transcription/rna-transcription.jq
Christina Sørensen 6378584930
feat: more stuff, not all perfect but ohh well
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-12-10 06:58:00 +01:00

8 lines
181 B
Text

def toRna:
if . == "" then .
elif . == "C" then "G"
elif . == "G" then "C"
elif . == "T" then "A"
elif . == "A" then "U"
else (./""|.[0]|toRna) + (.[1:]|toRna)
end;