Sha256: 66058a6d203b144659983f0933758d3fe4c81d0df2de0b80966de61146764215

Contents?: true

Size: 207 Bytes

Versions: 15

Compression:

Stored size: 207 Bytes

Contents

type dna = A | C | G | T;

type rna = A | C | G | U;

let convertOne = (d: dna) => 
  switch(d) {
  | A => U
  | C => G
  | G => C
  | T => A
  };

let toRna = (ds: list(dna)) => 
  List.map(convertOne, ds);

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
trackler-2.2.1.175 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.174 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.173 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.172 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.171 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.170 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.169 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.167 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.166 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.165 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.164 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.163 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.162 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.161 tracks/reasonml/exercises/rna-transcription/src/Example.re
trackler-2.2.1.160 tracks/reasonml/exercises/rna-transcription/src/Example.re