beetlebug▾
/

info functions

Gives the names of the math functions of expr.

info functions ?PATTERN?

Description

Gives the name of each math function, sorted: each command of the namespace tcl::mathfunc, with the ones that a script adds there. With PATTERN, the list has only the names that match it as a glob pattern.

Arguments

ArgumentTypeDefaultDescription
PATTERNglob patternnoneThe names to keep.

Returns

A sorted list of function names.

Examples

# Tcl 9.1 only
% info functions s*
signbit sin sinh sqrt srand

# Tcl 8.6 only
% info functions s*
sin sinh sqrt srand

% proc tcl::mathfunc::twice {v} {expr {$v * 2}}; info functions tw*
twice

Errors

% info functions a b
wrong # args: should be "info functions ?pattern?"
-errorcode TCL WRONGARGS

Tcl 8.6 and Tcl 9.1

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.1

See also