<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-crea="font-wrapper" style="font-family: Tahoma; font-size: 16px; direction: ltr">Hi all,<div><br></div><div>some days ago I looked up the examples for list comprehensions in the documentation.</div><div><br></div><div>In this example </div><div>   <span style="font-weight: bold; color: rgb(26, 26, 26); font-family: mono, Courier, monospace; font-size: 11.2px; white-space: pre-wrap;">[X || X <- [1,2,a,3,4,b,5,6], integer(X), X > 3].</span></div><div><font color="#1a1a1a" face="mono, Courier, monospace"><span style="font-size: 11.2px; white-space: pre-wrap;"><b><br></b></span></font></div><div>I noticed the function integer/1, which I didn't know and also couldn't find in the documentation.</div><div>I was wondering why I could use integer/1 in a guard or as list comprehension filter, but not "standalone".</div><div><br></div><div><span style="color: rgb(26, 26, 26); font-family: mono, Courier, monospace; font-size: 11.2px; white-space: pre-wrap;"><font color="#000000" face="Tahoma, sans-serif"><span style="font-size: 16px; white-space: normal;">The solution was in a remark for guard expressions, integer/1 is an ancestor of is_integer/1 and should not</span></font></span></div><div><span style="color: rgb(26, 26, 26); font-family: mono, Courier, monospace; font-size: 11.2px; white-space: pre-wrap;"><font color="#000000" face="Tahoma, sans-serif"><span style="font-size: 16px; white-space: normal;">be used in new code.</span></font></span></div><div><span style="color: rgb(26, 26, 26); font-family: mono, Courier, monospace; font-size: 11.2px; white-space: pre-wrap;"><font color="#000000" face="Tahoma, sans-serif"><span style="font-size: 16px; white-space: normal;"><br></span></font></span></div><div><span style="color: rgb(26, 26, 26); font-family: mono, Courier, monospace; font-size: 11.2px; white-space: pre-wrap;"><font color="#000000" face="Tahoma, sans-serif"><span style="font-size: 16px; white-space: normal;">find-grepping through the documentation xml files, I found some more occurences for the old "is_"-prefix-less functions.</span></font></span></div><div><span style="color: rgb(26, 26, 26); font-family: mono, Courier, monospace; font-size: 11.2px; white-space: pre-wrap;"><font color="#000000" face="Tahoma, sans-serif"><span style="font-size: 16px; white-space: normal;"><br></span></font></span></div><div><span style="color: rgb(26, 26, 26); font-family: mono, Courier, monospace; font-size: 11.2px; white-space: pre-wrap;"><font color="#000000" face="Tahoma, sans-serif"><span style="font-size: 16px; white-space: normal;">I'd be willing to update the xml files, it is not too much work with some nice emacs functions.</span></font></span></div><div><span style="color: rgb(26, 26, 26); font-family: mono, Courier, monospace; font-size: 11.2px; white-space: pre-wrap;"><font color="#000000" face="Tahoma, sans-serif"><span style="font-size: 16px; white-space: normal;"><br></span></font></span></div><div><span style="color: rgb(26, 26, 26); font-family: mono, Courier, monospace; font-size: 11.2px; white-space: pre-wrap;"><font color="#000000" face="Tahoma, sans-serif"><span style="font-size: 16px; white-space: normal;">First I am asking:</span></font></span></div><div><span style="color: rgb(26, 26, 26); font-family: mono, Courier, monospace; font-size: 11.2px; white-space: pre-wrap;"><font color="#000000" face="Tahoma, sans-serif"><span style="font-size: 16px; white-space: normal;">- do you think it is worth the effort?<br></span></font></span><div>- is it sufficient to patch the xml files?</div><div><br></div><div>If yes, I think that a pull request on github would be the method of choice, right?</div><div><br></div><div>kind regards,</div><div>dieter</div><div><br><div></div><br></div></div></div></body></html>