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

Interface to the sequence protocol

README:

FUNCTION

Public

COLLECTION-P (OBJECT)

test if object implements COLLECTION

SEQ-P (OBJECT)

test if object implements SEQ

SEQ-TO-LIST (SEQ)

a fresh list will all elements of seq

SEQABLE-P (OBJECT)

test if object implements SEQABLE

MACRO

Public

DOSEQ ((VAR FORM &OPTIONAL RETURN-CLAUSE) &BODY BODY)

bind var to each item in (seq form) and execute body. similar to dolist.

GENERIC-FUNCTION

Public

EMPTY (O)

an empty version of this collection

EMPTY-P (O)

wether this collection is empty

SEQ (O)

return a seq (or nil if count = 0) or error

TAIL (O)

the rest of the collection or nil