<head><title>ColdC: Function/Method Reference: setadd()</title></head> <body> <h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: setadd()</h1> <hr> <p> <font size=+1><i>LIST</i> <b>setadd</b>(<i>LIST <b>list</b>, ANY <b>value</b></i>)</font> <p>This function appends <var>value</var> to <var>list</var> if it is not already in the list, and returns the result. <p>Example: <blockquote><PRE> setadd([2, 3, 4], 'foo) => [2, 3, 4, 'foo] setadd([2, 3, 4], 3) => [2, 3, 4] </pre></blockquote> <p><hr size=4><p align=center><i>Last Modified on 24 Mar 1996</i> <br><i>Copyright © 1995, 1996, Brandon Gillespie</i> </body>