Difference between revisions of "CoCoA:Diff"

From ApCoCoAWiki
(pushing XML rev. 1.46, again)
 
(No difference)

Latest revision as of 10:02, 24 October 2007

Diff

returns the difference between two lists

Description

This function returns the list obtained by removing all the elements

of M from L.

Example

  L := [1,2,3,2,[2,3]];
  M := [1,2];
  Diff(L,M);
[3, [2, 3]]
-------------------------------

Syntax

Diff(L:LIST,M:LIST):LIST

Insert

Remove

   <type>list</type>