Which one is faster and why?

Posted by The Machine Charmer on Stack Overflow See other posts from Stack Overflow or by The Machine Charmer
Published on 2010-03-11T09:26:57Z Indexed on 2010/03/11 18:59 UTC
Read the original article Hit count: 153

Filed under:
|
(n >= 3 ) && (n <= 99)

OR

 n `elem` [3..99]

Which one is faster and why?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about beginner