Sha256: 1223f6f807796e33cf6715518d9915ec7c70e322f4535e78f769340201ea5e1d

Contents?: true

Size: 286 Bytes

Versions: 396

Compression:

Stored size: 286 Bytes

Contents

module DNA (toRNA) where

import qualified Data.Map.Strict as Map

toRNA :: String -> Maybe String
toRNA = mapM (`Map.lookup` rna)
  where
    rna = Map.fromList [ ('C', 'G')
                       , ('G', 'C')
                       , ('A', 'U')
                       , ('T', 'A') ]

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.179 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.178 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.177 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.176 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.175 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.174 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.173 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.172 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.171 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.170 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.169 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.167 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.166 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.165 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.164 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.163 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.162 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.161 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.160 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs