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.139 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.138 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.137 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.136 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.135 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.134 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.133 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.132 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.131 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.130 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.129 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.128 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.127 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.126 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.125 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.124 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.123 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.122 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.121 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.120 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs