ColdC: Function/Method Reference: listgraft()


LIST listgraft(LIST list, INTEGER pos, LIST list2)

This function is similar to insert(), 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 list2 and place each element in that list into list, starting at the position specified by pos.

Example:

listgraft([1, 2, 3, 4, 5], 3, ["foo", "bar", "baz"])
=> [1, 2, "foo", "bar", "baz", 3, 4, 5]


Last Modified on 24 Mar 1996
Copyright © 1995, 1996, Brandon Gillespie