<div dir="ltr"><div>Hi,</div><div>this is my solution:</div><div><br></div>productLastPart :: Int -> [Int] -> Int<br>productLastPart n xs = product (take n (reverse xs))<br><div><br></div><div>It only uses functions product, take and reverse</div><div>Regards, </div><div>Ut</div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
        <tr>
      <td style="width:55px;padding-top:18px"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Mail priva di virus. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avg.com</a>                 </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 18 ott 2019 alle ore 18:16 Seph Shewell Brockway <seph@codex.scot> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Oct 16, 2019 at 09:09:40PM +0000, <a href="mailto:instanct95@aol.com" target="_blank">instanct95@aol.com</a> wrote:<br>
> I need help with this haskell functionWrite a function productLastPart which, only using library functions, returns the product of thelast n numbers in the list, where n is the first argument to the function. productLastPart :: Int -> [Int] -> Int<br>
<br>
It would probably help you learn if you made an attempt to solve it<br>
yourself first. If you post what you have so far, I’d be happy to take<br>
a look.<br>
<br>
         Regards,<br>
<br>
         Seph<br>
<br>
-- <br>
Seph Shewell Brockway, BSc MSc (Glas.)<br>
Pronouns: she/her<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>