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.119 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.118 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.117 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.116 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.115 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.114 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.113 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.111 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.110 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.109 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.108 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.107 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.106 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.105 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.104 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.103 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.102 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.101 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.100 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs
trackler-2.2.1.99 tracks/haskell/exercises/rna-transcription/examples/success-standard/src/DNA.hs