/
ColdC/Functions/
ColdC/Structure/
<head><title>ColdC: Function/Method Reference: delete()</title></head>

<body>

<h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: delete()</h1>

<hr>

<p>
<font size=+1><i>LIST</i> <b>delete</b>(<i>LIST <b>list</b>, INTEGER <b>pos</b></i>)</font>

<p>This function returns the result of deleting the element of <VAR>list</VAR>
numbered by the integer <VAR>position</VAR>.  If <VAR>position</VAR> is less
than <CODE>1</CODE> or is greater than the length of <VAR>list</VAR>, then
<CODE>delete()</CODE> throws a <CODE>~range</CODE> error.

<P>Examples:

<blockquote>
<PRE>  
delete([2, 3, 4], 2)
=&gt; [2, 4]
</PRE>
</blockquote>

<p><hr size=4><p align=center><i>Last Modified on 24 Mar 1996</i>
<br><i>Copyright &copy; 1995, 1996, Brandon Gillespie</i>
</body>