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

<body>

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

<hr>

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

<p>This function is similar to <a href="insert.html"><code>insert()</code></a>,
except it grafts a list into another list, rather than inserting an element
at a point in the list.  It will take the list specified by <var>list2</var>
and place each element in that list into <var>list</var>, starting at the
position specified by <var>pos</var>.

<p>Example:

<blockquote><pre>
listgraft([1, 2, 3, 4, 5], 3, ["foo", "bar", "baz"])
=> [1, 2, "foo", "bar", "baz", 3, 4, 5]
</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>