tracks/reasonml/exercises/rna-transcription/src/Example.re in trackler-2.2.1.175 vs tracks/reasonml/exercises/rna-transcription/src/Example.re in trackler-2.2.1.176
- old
+ new
@@ -1,14 +1,21 @@
-type dna = A | C | G | T;
+type dna =
+ | A
+ | C
+ | G
+ | T;
-type rna = A | C | G | U;
+type rna =
+ | A
+ | C
+ | G
+ | U;
-let convertOne = (d: dna) =>
- switch(d) {
+let convertOne = (d: dna) =>
+ switch (d) {
| A => U
| C => G
| G => C
| T => A
};
-let toRna = (ds: list(dna)) =>
- List.map(convertOne, ds);
\ No newline at end of file
+let toRna = (ds: list(dna)) => List.map(convertOne, ds);