<div dir="ltr">The penultimate solution for problem 19 of <a href="https://wiki.haskell.org/H-99:_Ninety-Nine_Haskell_Problems">Ninety-Nine Haskell Problems</a> is giving the result for the opposite of the given N.<div>e.g. <span style="background-color:rgb(238,238,238)">rotate "abcdefgh" (-3)</span> gives the result for <span style="background-color:rgb(238,238,238)">rotate "abcdefgh" 3</span><br><div><br></div><div>Here's the problem <a href="https://wiki.haskell.org/99_questions/11_to_20">https://wiki.haskell.org/99_questions/11_to_20</a> and the solution <a href="https://wiki.haskell.org/99_questions/Solutions/19">https://wiki.haskell.org/99_questions/Solutions/19</a></div></div><div><br></div><div>I think it could be solved like this:</div><div><br></div><div><div>rotate xs n</div><div>    | n <= 0 = (reverse . take (negate n) . reverse $ xs) ++ (reverse . drop (negate n) . reverse $ xs)</div><div>    | n > 0 = (drop n xs) ++ (take n xs)</div></div><div><br></div><div>I know it's not great, just keeping the spirit of the original solution<br></div><div><br></div><div>Is this the right list for reporting this kind of bugs?</div><div><br></div><div>Nicolás</div></div>