Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. Prelude> :{
  2. Prelude| let bmiTell :: Double -> Double -> String
  3. Prelude| bmiTell weight height
  4. Prelude| weight / height ^ 2 <= 18.5 = "You're underweight, you emo, you!"
  5. Prelude| weight / height ^ 2 <= 25.0 = "You're supposedly normal. Pffft, I bet you're ugly!"
  6. Prelude| weight / height ^ 2 <= 30.0 = "You're fat! Lose some weight, fatty!"
  7. Prelude| otherwise = "You're a whale, congratulations!"
  8. Prelude| :}
  9.  
  10. <interactive>:19:1: parse error on input `bmiTell'
  11.  
  12. Prelude> :{
  13. Prelude| let bmiTell :: Double -> Double -> String
  14. Prelude| bmiTell weight height = undefined
  15. Prelude| :}
  16.  
  17. <interactive>:6:1: parse error on input `bmiTell'
  18. Prelude> :{
  19. Prelude| let bmiTell :: Double -> Double -> String
  20. Prelude| bmiTell weight height = undefined
  21. Prelude| :}
  22. Prelude>
  23.  
  24. weight / height ^ 2
  25.  
  26. | weight / height ^ 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement