Next Previous Up Top Contents Index

1 CAPI Reference Entries

count-collection-items

Generic Function

Summary

Thecount-collection-items generic function returns the number of items in a collection.
Package

CAPI-INTERNALS

Syntax

count-collection-items collection &optional representation

Description

Return the number of items in the collection by calling theitems-count-function. If representation is non-nil, it is used in place of theitems-representation in the choice.
Examples

The following example usescount-collection-items to return the number of items in a list panel.
(setq list (make-instance 'capi:list-panel
                          :items '(1 2 3 4 5)))

(capi:count-collection-items list)

The following example shows how to count the number of items in a specified list.
(capi:count-collection-items list '(1 2))

See also

collection
get-collection-item
search-for-item

LispWorks CAPI Reference Manual - 17 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker