inclu


inclusion

inclu

inclu("dir")

Returne "..\..\dir" if this directory existes else return NIL.

inclu x,w

If x is a float and w is a list of floats:
        Returns NIL if x is not included in w, otherwise returns the numbered occurrences of x in w.

inclu("chaine1 chaine2")

        Returns NIL if "chaine1" is not included in "chaine2", otherwise returns the numbered occurrences of "chaine1" in "chaine2" .
Note: do not forget the space between the two strings.

Examples:
inclu(2,0,.1,2,3,2); returns (2,4).
inclu("AB CABAB"); returns (1,3).
inclu(1,[3,5]); returns NIL.
x="ab\"cd";a="\" ";$inclu(a,x); prints 2.

See also:

read write inclu