Sha256: 8f125a829ee432730c3fab21e9edf856030d6781f67df6bbed46b429b7fe226f

Contents?: true

Size: 265 Bytes

Versions: 122

Compression:

Stored size: 265 Bytes

Contents

package strand

import "strings"

func ToRNA(dna string) string {
	dna = strings.Replace(dna, "A", "u", -1)
	dna = strings.Replace(dna, "T", "a", -1)
	dna = strings.Replace(dna, "C", "g", -1)
	dna = strings.Replace(dna, "G", "c", -1)
	return strings.ToUpper(dna)
}

Version data entries

122 entries across 122 versions & 1 rubygems

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