Find limit of recursion is part of Short Circuit's Console Program Basics selection.
Task

Find the limit of recursion.




import Debug.Trace (trace)
 
recurse :: Int -> Int
recurse n = trace (show n) recurse (succ n)
 
main :: IO ()
main = print $ recurse 1