1 CAPI Reference Entries

map-collection-items

Generic Function

Summary

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

Syntax

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

Description

Calls function on each item in the collection by calling the collection'sitems-map-function. If collect-results-p is non-nil, the results of each call will be 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 Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker