title: How do I implement nested functions in haskell
body: <p><a href="https://mathematica.stackexchange.com/questions/66085/how-to-define-a-nested-function-like-this">I recently came across this question:</a></p>
  <p>Which basically asks how to implement this function to calculate the limit of f(n):</p>
  <p><img src="https://i.stack.imgur.com/ZBG9z.png" alt="enter image description here" /></p>
  <p>How would I implement this in haskell? I am trying to learn functional programming and this seems a good challenge for me now</p>