Top
Back: 5.1.15 degree
Forward: 5.1.17 det
FastBack: 5. Functions and system variables
FastForward: 6. Tricks and pitfalls
Up: 5.1 Functions
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

5.1.16 delete

Syntax:

delete ( list_expression, int_expression )

Type:

list

Purpose:

deletes the element with the given index from a list (the input is not changed).

Example:
 
  list l="a","b","c";
  list l1=delete(l,2);l1;
→ [1]:
→    a
→ [2]:
→    c
  l;
→ [1]:
→    a
→ [2]:
→    b
→ [3]:
→    c

See insert; list.


Top Back: 5.1.15 degree Forward: 5.1.17 det FastBack: 5. Functions and system variables FastForward: 6. Tricks and pitfalls Up: 5.1 Functions Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.