tail recursion in Haskell

Apr 04, 2007 11:38

Thus, the most common Haskell idiom about tail recursion is to not think about it (and hence not use it). Instead, return values as early as possible (in some cases (&&) can return a definite answer by looking at the first argument only). Note that this is very different from strict functional languages.
-haskell-cafe

quotes, tips, haskell

Previous post Next post
Up