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