MULTEXT - Document MQL2. SgmlQL reference/Operators.
Shrink

The operator shrink() converts an arbitraty list into an element list (possibly a mixed-content list):

Finally, shrink() concatenates all adjacent strings into a single string. If string is specified, adjacent strings are separated by string during concatenation.

Prototype

list <-- shrink ( list [, string ] )

Examples

  • shrink([1, 2, %<A>3</A>%, 4, 5]);
  • 12<A>
    3
    </A>45
  • count(shrink([1, 2, %<A>3</A>%, 4, 5]));
  • 3
  • shrink([1, 2, %<A>3</A>%, 4, 5], " ");
  • 1 2<A>
    3
    </A>4 5




    | Top | Next | SgmlQL reference | LPL/CNRS | MULTEXT

    Copyright © Centre National de la Recherche Scientifique, 1997.