  | ### 5.1.21 delete `Syntax:` `delete (` list_expression`,` int_expression `)` `delete (` intvec_expression`,` int_expression `)` `delete (` ideal_expression`,` int_expression `)` `delete (` module_expression`,` int_expression `)` `delete (` list_expression`,` intvec_expression `)` `delete (` ideal_expression`,` intvec_expression `)` `delete (` module_expression`,` intvec_expression `)` `Type:` type of the first argument `Purpose:` deletes the element(s) with the given index/indices from a list/intvec/ideal/module (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
        delete(1..5,2);
      ==> 1,3,4,5
        ring r=0,(x,y,z),dp;
        delete(maxideal(1),1);
      ==> _[1]=y
      ==> _[2]=z
        delete(maxideal(1),1..2);
      ==> _[1]=z
See ideal; insert; intvec; list; module.

User manual for Singular version 4.4.0, 2024, generated by texi2html.