[ top | up ]

Return a Symbol's Value

Syntax

get(x, envir=null, mode="any", inherits=false)

Arguments

x a symbol (given as a quoted string).
envir the environent to be used.
mode the type of object sought.
inherits should the enclosing frames of the environment be inspected?

Description

get searches the specified environment for a bound symbol whose name is given by the string x. If the value bound to the symbol is not of the correct mode, that symbol is ignored.

If inherits is false, only the first frame of the specified environment is inspected. If inherits is true, the search is continued up through the parent frames until a bound value of the right mode is found.

Using a null environment is equivalent to using the current environment.