Common Lisp Package: ORG.IODB.PAREN-UTIL

README:

FUNCTION

Public

EVERY (PRED FIRST-SEQ &REST MORE-SEQS)

Apply PREDICATE to the 0-indexed elements of the sequences, then possibly to those with index 1, and so on. Return NIL as soon as any invocation of PREDICATE returns NIL, or T if every invocation is non-NIL.

FUNCALL (FUNCTION &REST ARGUMENTS)

Call FUNCTION with the given ARGUMENTS.

IDENTITY (THING)

This function simply returns what was passed to it.

LENGTH (SEQUENCE)

Return an integer that is the length of SEQUENCE.

NREVERSE (SEQUENCE)

Return a sequence of the same elements in reverse order; the argument is destroyed.

REMOVE (ITEM SEQUENCE &REST ARGS &KEY FROM-END (TEST #'EQL) (TEST-NOT NIL) (START 0) (END NIL) (COUNT NIL) (KEY NIL))

Return a copy of SEQUENCE with elements satisfying the test (default is EQL) with ITEM removed.

REMOVE-DUPLICATES (SEQUENCE &REST ARGS &KEY (TEST #'EQL) (TEST-NOT NIL) (START 0) (END NIL) FROM-END (KEY NIL))

The elements of SEQUENCE are compared pairwise, and if any two match, the one occurring earlier is discarded, unless FROM-END is true, in which case the one later in the sequence is discarded. The resulting sequence is returned. The :TEST-NOT argument is deprecated.

REMOVE-IF-NOT (PREDICATE SEQUENCE &REST ARGS &KEY FROM-END (START 0) (END NIL) (COUNT NIL) (KEY NIL))

Return a copy of sequence with elements not satisfying PREDICATE removed.

REVERSE (SEQUENCE)

Return a new sequence containing the same elements but in reverse order.

SOME (PRED FIRST-SEQ &REST MORE-SEQS)

Apply PREDICATE to the 0-indexed elements of the sequences, then possibly to those with index 1, and so on. Return the first non-NIL value encountered, or NIL if the end of any sequence is reached.

STRINGP (OBJECT)

Return true if OBJECT is a STRING, and NIL otherwise.

SUBSEQ (SEQUENCE START &OPTIONAL END)

Return a copy of a subsequence of SEQUENCE starting with element number START and continuing to the end of SEQUENCE or the optional END.

USE-PACKAGE (PACKAGES-TO-USE &OPTIONAL (PACKAGE (SANE-PACKAGE)))

Add all the PACKAGES-TO-USE to the use list for PACKAGE so that the external symbols of the used packages are accessible as internal symbols in PACKAGE.

Undocumented

FIND (ITEM SEQUENCE &REST ARGS &KEY FROM-END (START 0) END KEY TEST TEST-NOT)

MACRO

Public

Undocumented

IN-PACKAGE (STRING-DESIGNATOR)