CoCoA:Diff

From ApCoCoAWiki

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>