CoCoA:WithoutNth

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WithoutNth

removes the N-th component from a list

Description

This function returns the list obtained by removing the N-th

component of the list L. The list L is not affected (as opposed to

the command <ttref>Remove</ttref>).

Example

  L := [1,2,3,4,5];
  WithoutNth(L,3);
[1, 2, 4, 5]
-------------------------------

Syntax

WithoutNth(L:LIST,N:INT):LIST

Insert

Remove

   <type>list</type>