clean


nettoie une entité

clean
format
inclu
rem

clean

clean

        Removes all empty objects.

clean("ch")

        Returns the string ch after removing comments / * ... * / / / ...
Useful for cleaning files read by f=read("name")
Example:
ch="AB/* this a comment comment */CD";
$clean(ch);

produces: ABCD

clean format

clean("ch")format(n)

        Returns the string ch far away from his multiple vectors of dimension n.
Example:
clean("abcdbcdbce")format(2)
returns string "abcdde"

clean(x1,x2,...)format(n)

        Returns the array (x1,x2,...) far away from his multiple vectors of dimension n.
Example:
clean(1,2,3,4,5,2,3,4,6,2,3,4,7)format(3)
returns (1,2,3,4,5,6,7)

clean inclu

clean("ch")inclu("ab")

        Returns the string ch after replacement of character a by b.
Example:
clean("ABACAAD")inclu("AX");
returns XBXCXXD

clean(x1,x2,...)inclu(x,y)

        Returns the array (x1,x2,...) after replacement of x by y.
Options:
precision(p): with p precision (p=0 par défaut).
Example:
clean(1,2,3,2,4)inclu(2,5);
returns (1,5,3,5,4)

clean rem

clean("ch")rem("s")

        Returns the string ch after removing characters s.
Example:
clean("A B\n \nCD")rem(" \nB");
returns ACD

clean(x1,x2,...,xc)rem(y1,y2,...,ys)

        Returns the array (x1,x2,...,xc) after removing vectors (y1,y2,...,ys).
Options:
precision(p): with p precision (p=0 par défaut).
Example:
clean(1,2,3,4,2,3,5)rem(2,3);
returns (1,4,5)