All Manuals > LispWorks User Guide and Reference Manual > 35 The MP Package

NextPrevUpTopContentsIndex

map-processes

Function
Summary

Calls a predicate function on processes in turn until a true value is returned.

Package

mp

Signature

map-processes function => result

Arguments

function

A function taking one argument

Values

result

A process or nil .

Description

The function map-processes calls function on processes.

function is passed each live process (as determined by process-alive-p) in turn as its single argument.

For a process argument p , if function returns nil then map-processes continues by calling function on another process, but if function returns true then map-processes returns p immediately and stops calling function (so function may not get called on all processes).

See also

map-all-processes


LispWorks User Guide and Reference Manual - 21 Dec 2011

NextPrevUpTopContentsIndex