Common Lisp Package: COM.CLEARLY-USEFUL.COUNTABLE-PROTOCOL

Interface to the countable protocol

README:

FUNCTION

Public

COLLECTION-P (OBJECT)

test if object implements COLLECTION

COUNTABLE-P (OBJECT)

test if object implements COUNTABLE

GENERIC-FUNCTION

Public

COUNT-ELEMENTS (O)

the number of elements in o

COUNTABLE (OBJECT)

convert an object to COUNTABLE protocol, or error.

COUNTED-P (O)

whether a collection is counted in constant time

EMPTY (O)

an empty version of this collection

EMPTY-P (O)

wether this collection is empty