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.0.0.5 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.0.0.4 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.0.0.3 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.0.0.2 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-2.0.0.1 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-2.0.0.0 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-1.0.4.1 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-1.0.4.0 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-1.0.3.0 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-1.0.2.1 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-1.0.2.0 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-1.0.1.2 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-1.0.1.1 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-1.0.1.0 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-1.0.0.1 tracks/haskell/exercises/rna-transcription/src/Example.hs
trackler-1.0.0 tracks/haskell/exercises/rna-transcription/src/Example.hs