CoCoA:Diff

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)

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>