A script-enabled browser is required for this page to function properly.

LIST.PREPENDITEM built-in procedure

This procedure adds an item to the beginning of a list.

Syntax

PROCEDURE LIST.PREPENDITEM
(list Listofchar),
item VARCHAR2);

Parameter

Description

list

The name of an existing list.

item

A list item.

Example


/* 
** 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;

See also

About the LIST built-in package

LIST built-in package