LIST.PREPENDITEM
built-in procedureThis procedure adds an item to the beginning of a list.
PROCEDURE LIST.PREPENDITEM
(list Listofchar),
item VARCHAR2);
Parameter |
Description |
|
The name of an existing list. |
|
A list item. |
/*
** Insert a string to the beginning of my_List
** then retrieve it and print it out
*/
PROCEDURE prepend(my_List List.Listofchars) IS
BEGIN
LIST.PREPENDITEM(my_List, 'This is the first item.');
TEXT_IO.PUT_LINE(LIST.GETITEM(my_List, 0));
END;
About the LIST
built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.