<div dir="ltr"><span class=""><span>Bellow is my code for returning a list of digits given an integer.I'm unable to find any bug in it but somehow it crashes any computer I run it on when I try to calculate digs 100.Please tell me bug in my code.<br></span></span><div><span class=""><span><br>let digs 0 =[0]
<br>let digs x = (digs (x `div` 10)) ++ [(x `rem` 10)]
<br>digs 100<br><br></span></span></div><div><span class=""><span>Thanks<br></span></span></div><div><span class=""><span>Abhishek<br></span></span></div></div>