1 CAPI Reference Entries

print-collection-item

Generic Function

Summary

The generic functionprint-collection-item prints an item as a string using a specified print function.

Syntax

print-collection-item item choice

Description

This prints item as a string according to the print function in choice.

Example

(setq collection (make-instance
                  'capi:collection
                  :items '(1 2 3 4 5)
                  :print-function #'(lambda (x)
                                      (format nil
                                       "<~A:>"
                                       x))))

(capi:print-collection-item 2 collection)

See Also

get-collection-item
collection


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker