HyperMath

which

which

Previous topic Next topic No expanding text in this topic  

which

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Returns the full path of a function.

Syntax

p = which(f)

Argument

Name

Description

 

f

A string (function name) or function.

Outputs

Name

Description

 

p

The full path of the function.

Example

Syntax

 

print(which('which'))

print(which(which))

function foo() return 1; end

print(which(foo))

print(which(Norm))

Comments

p = which(f) returns the full path of a function.

If this function is a built-in or a function defined from the command line,
an empty string, '', is returned.

See Also:

hmlfilename