Sha256: ecf762985cfd14bdb5e0bd5f1a4b0bd5f762d60b00048fe87251e0543dddc5ed

Contents?: true

Size: 368 Bytes

Versions: 193

Compression:

Stored size: 368 Bytes

Contents

class RnaTranscription {
  String toRna(String dna) {
    return dna.split("").map((c) {
      switch (c) {
        case "G":
          return "C";
        case "C":
          return "G";
        case "T":
          return "A";
        case "A":
          return "U";
        default:
          throw new ArgumentError("Invalid input");
      }
    }).join("");
  }
}

Version data entries

193 entries across 193 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.179 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.178 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.177 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.176 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.175 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.174 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.173 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.172 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.171 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.170 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.169 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.167 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.166 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.165 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.164 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.163 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.162 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.161 tracks/dart/exercises/rna-transcription/lib/example.dart
trackler-2.2.1.160 tracks/dart/exercises/rna-transcription/lib/example.dart