Posted By

ikfjwe on 10/22/08


Tagged

identifier


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

keigoi


compare


 / Published in: Haskell
 

  1. *Main> compare 1 2
  2. LT
  3. *Main> compare 3 2
  4. GT
  5. *Main> compare 3 3
  6. EQ
  7. *Main> compare 3.0 2.9
  8. GT
  9. *Main> compare 3.0 2
  10. GT
  11. *Main> :t (compare 1 1)
  12. (compare 1 1) :: Ordering
  13. *Main> :t compare
  14. compare :: (Ord a) => a -> a -> Ordering

Report this snippet  

You need to login to post a comment.