All Manuals > LispWorks® User Guide and Reference Manual > 47 The SYSTEM Package

map-environment Function

Summary

Maps functions over the bindings in an environment.

Package

system

Signature

map-environment env &key variable function block tag

Arguments
env
An environment or nil.
variable
A function designator.
function
A function designator.
block
A function designator.
tag
A function designator.
Description

The function map-environment calls variable for each local variable binding in env, function for each local function binding in env, block for each block binding in env and tag for each tag binding in env.

variable is called with the following arguments: name kind info.

name
A symbol naming a variable.
kind
One of :special, :symbol-macro or :lexical, which specifies the kind of binding (see variable-information).
info
The symbol-macro expansion if kind is :symbol-macro and is unspecified otherwise.

function is called with the following arguments: name kind info.

name
A symbol naming a function.
kind
One of :macro or :function, which specifies the kind of binding (see function-information).
info
The macro expansion function if kind is :macro and is unspecified otherwise.

block is called with the following arguments: name kind info.

name
A symbol naming a block.
kind
The keyword :block.
info
Unspecified.

tag is called with the following arguments: name kind info.

name
A symbol naming a tag.
kind
The keyword :tag.
info
Unspecified.
See also

augment-environment
declaration-information
define-declaration
function-information
variable-information


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02