Guest User

Untitled

a guest
Jan 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. -- Minha função
  2. transcribe :: Char -> Maybe Char
  3. transcribe nucleotide
  4. | nucleotide == 'G' = Just 'C'
  5. | nucleotide == 'C' = Just 'G'
  6. | nucleotide == 'T' = Just 'A'
  7. | nucleotide == 'A' = Just 'U'
  8. | otherwise = Nothing
  9.  
  10. -- Função de outro participante
  11. transcribe :: Char -> Maybe Char
  12. transcribe 'G' = Just 'C'
  13. transcribe 'C' = Just 'G'
  14. transcribe 'T' = Just 'A'
  15. transcribe 'A' = Just 'U'
  16. transcribe _ = Nothing
Add Comment
Please, Sign In to add comment