<div>Hello Haskell Community -</div>
<div> </div>
<div>I am a professional programmer with 11 years experience, yet I just do not seem to be able to get the hang of even simple things in Haskell.  I am trying to write a function that takes a list and returns the last n elements.</div>

<div> </div>
<div>There may be a function which I can just call that does that, but I am trying to roll my own just to understand the concept.</div>
<div> </div>
<div>Let&#39;s call the function n_lastn and, given a list  [1,2,3,4,5], I would like </div>
<div>n_lastn 3 = [3,4,5]</div>
<div> </div>
<div>Seems like it would be something like:</div>
<div> </div>
<div>n_lastn:: [a]-&gt;Int-&gt;[a]</div>
<div>n_lastn 1 (xs) = last(xs)</div>
<div>n_lastn n (x:xs) = ????</div>
<div> </div>
<div>The issue is I do not see how you can store the last elements of the list.</div>
<div> </div>
<div>Thanks in advance.</div>
<div> </div>
<div>ctauss</div>