Control statements in Haskell?

Posted by Nathan on Stack Overflow See other posts from Stack Overflow or by Nathan
Published on 2010-05-06T20:37:33Z Indexed on 2010/05/06 20:58 UTC
Read the original article Hit count: 272

Filed under:
|
|
|

I am just beginning Haskell, but from all the online tutorials I've found I can't seem to find if there is one accepted way to do a conditional control statement. I have seen if-else, guards, and pattern matching, but they all seem to accomplish the same thing. Is there one generally accepted/faster/more efficient way than the rest?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about conditional