Home Online Manual
Top
Back: binomial
Forward: factorial
FastBack:
FastForward:
Up: general_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.2.3.5 deleteSublist

Procedure from library general.lib (see general_lib).

Usage:
deleteSublist(v,l); intvec v; list l
where the entries of the integer vector v correspond to the positions of the elements to be deleted

Return:
list without the deleted elements

Example:
 
LIB "general.lib";
list l=1,2,3,4,5;
intvec v=1,3,4;
l=deleteSublist(v,l);
l;
==> [1]:
==>    2
==> [2]:
==>    5