All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

NextPrevUpTopContentsIndex

map-collection-items

Generic Function
Summary

The generic function map-collection-items calls a specified function on all the items in a collection.

Package

capi

Signature

map-collection-items collection function &optional collect-results-p

Arguments

collection

A collection.

function

A function designator for a function of one argument.

collect-results-p

A generalized boolean.

Description

Calls function on each item in the collection by calling the collection's items-map-function . If collect-results-p is true, the results of these calls are returned in a list.

Example
(setq collection (make-instance 'capi:collection
                                :items '(1 2 3 4 5)))
(capi:map-collection-items collection 
                           'princ-to-string t)
See also

collection
choice


CAPI User Guide and Reference Manual (Unix version) - 3 Aug 2017

NextPrevUpTopContentsIndex