<div dir="ltr">Hello Karlo,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On 16 July 2018 at 01:07, Karlo Kuna <span dir="ltr"><<a href="mailto:kuna.prime@gmail.com" target="_blank">kuna.prime@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"></div><div dir="auto">Is there any built in method of checking if list is improper?</div></div></blockquote><div><br></div><div>Something like this should do:<br><br>> is_improper_list(Value) when length(Value) >= 0 ->                                                                                                                                                                                             <br>>     false;                                                                                                                                                                                                                                     <br>> is_improper_list(Value) ->                                                                                                                                                                                                                     <br>>     is_list(Value).</div><div><br></div><div>`length/1' will fail upon Value being an improper list.<br></div></div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Guilherme<br></div></div></div></div></div></div>
</div></div></div>