CoCoA:NonZero

From ApCoCoAWiki

NonZero

remove zeroes from a list

Description

This function returns the list obtained by removing the zeroes from L.

Example

  Use R ::= Q[x,y,z];
  NonZero([<quotes>a</quotes>,0,0,3,Ideal(y),0]);
[<quotes>a</quotes>, 3, Ideal(y)]
-------------------------------

Syntax

NonZero(L:LIST or VECTOR):LIST

FirstNonZero

FirstNonZeroPos

   <type>list</type>
   <type>vector</type>