Sha256: 3191c6a8acb69220269e8d46db856a50d3fadb72050de7464bd4ccf58d27de6b

Contents?: true

Size: 388 Bytes

Versions: 230

Compression:

Stored size: 388 Bytes

Contents

using System.Collections.Generic;
using System.Linq;

public class Complement
{
    private static readonly Dictionary<char, char> DnaToRna = new Dictionary<char, char>
        {
            { 'G', 'C' }, { 'C', 'G' }, { 'T', 'A' }, { 'A', 'U' }
        };

    public static string OfDna(string nucleotide)
    {
        return string.Concat(nucleotide.Select(x => DnaToRna[x]));
    }
}

Version data entries

230 entries across 230 versions & 1 rubygems

Version Path
trackler-2.1.0.55 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.54 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.53 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.52 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.51 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.50 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.49 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.48 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.47 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.46 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.45 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.44 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.43 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.42 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.41 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.40 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.39 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.38 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.37 tracks/csharp/exercises/rna-transcription/Example.cs
trackler-2.1.0.36 tracks/csharp/exercises/rna-transcription/Example.cs