Name

to string — Converts an object to its string representation

Synopsis

to string

Description

Applied to any object, to string returns its string representation as a string-typed value. Usually BBQ does this for you when necessary, but this operator allows you to explicitly convert an object into a string value where a string-valued expression is required.

Example

This expression returns the last component (following the period) of all the package names.

substitute( to string, //.*\./, ///) all packages

Context

Count-Preserving

Applies to Type

object

Results in Type

string

browse-by-query home antlersoft free software sourceforge project page