Sha256: dfcd762620e1bb57e69d1825d1d1aa64d7ddc8786dc701a091adbca0dbe883b4
Contents?: true
Size: 999 Bytes
Versions: 183
Compression:
Stored size: 999 Bytes
Contents
# Rna Transcription Given a DNA strand, return its RNA complement (per RNA transcription). Both DNA and RNA strands are a sequence of nucleotides. The four nucleotides found in DNA are adenine (**A**), cytosine (**C**), guanine (**G**) and thymine (**T**). The four nucleotides found in RNA are adenine (**A**), cytosine (**C**), guanine (**G**) and uracil (**U**). Given a DNA strand, its transcribed RNA strand is formed by replacing each nucleotide with its complement: * `G` -> `C` * `C` -> `G` * `T` -> `A` * `A` -> `U` ## Hints For this exercise the following F# feature comes in handy: - [Match Expressions](https://fsharpforfunandprofit.com/posts/match-expression/) While this can be solved using a dictionary, using a match expression is more idiomatic. ## Source Rosalind [http://rosalind.info/problems/rna](http://rosalind.info/problems/rna) ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.
Version data entries
183 entries across 183 versions & 1 rubygems