Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Minha função
- transcribe :: Char -> Maybe Char
- transcribe nucleotide
- | nucleotide == 'G' = Just 'C'
- | nucleotide == 'C' = Just 'G'
- | nucleotide == 'T' = Just 'A'
- | nucleotide == 'A' = Just 'U'
- | otherwise = Nothing
- -- Função de outro participante
- transcribe :: Char -> Maybe Char
- transcribe 'G' = Just 'C'
- transcribe 'C' = Just 'G'
- transcribe 'T' = Just 'A'
- transcribe 'A' = Just 'U'
- transcribe _ = Nothing
Add Comment
Please, Sign In to add comment