insert()

Returns a new list with an inserted item, given an existing list and item to insert into the beginning of the list.

Syntax:

insert(list, listItem);

where

list is the list to insert the item into.

listItem is the item to insert.

Example:
decl list1;
list1 = list(1, 2, 3);
// The result is list1 = 1, 2, 3
list1 = insert(list1, 0);
// The result is list1 = 0, 1, 2, 3
=========================================
To produce an empty list:
insert_nth(0, list(), 10); //produces list(10)

Where Used:

Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources