summary refs log tree commit diff stats
path: root/raku/rna-transcription/RNA.rakumod
diff options
context:
space:
mode:
Diffstat (limited to 'raku/rna-transcription/RNA.rakumod')
-rw-r--r--raku/rna-transcription/RNA.rakumod5
1 files changed, 5 insertions, 0 deletions
diff --git a/raku/rna-transcription/RNA.rakumod b/raku/rna-transcription/RNA.rakumod
new file mode 100644
index 0000000..a694d70
--- /dev/null
+++ b/raku/rna-transcription/RNA.rakumod
@@ -0,0 +1,5 @@
+unit module RNA;
+
+sub to-rna (Str $dna --> Str) is export {
+    $dna.trans(<G C T A> => <C G A U>);
+}