next up previous contents index
Next: remove,removeAll Up: DynamicDataStructureType Previous: DynamicDataStructureType   Contents   Index


insert


Usage

insert(t, a)
insert!(t, a)


Signature

insert: (T, %) $\to$ %


Parameter Type Description
t T an element to add
a % a dynamic data structure


Description

Adds t to a and returns the new structure. insert creates a new structure while insert! modifies a itself.



Manuel Bronstein 2004-06-28