Common Lisp Package: MT

README:

FUNCTION

Public

ARAND (CENTER RANGE)

Return a random number from the range [center-range, center+range]

BREAK-LIST (L N)

Break LIST into sublists of length N

COLLECT (FCN LIST)

Applies FCN to each element of LIST returning all the non-nil values as a list.

DATE-TIME-STRING (UNIVERSAL-TIME &KEY (INCLUDE-TIME T) (INCLUDE-DATE T) (INCLUDE-DAY T) (STREAM NIL))

Turn a universal time into a string. Arguments are fairly obvious. :include-day and :include-date can take the value :unless-today, in which case date or day is only included if the time is not today.

FILE-TO-STRING (FILE &KEY (MAX 1000000))

Returns a string containing all the characters in FILE with line terminators converted to Newlines. If the string would exceed MAX characters (default a million) a warning is issued and NIL is returned.

FILTER (PREDICATE LIST &KEY KEY &AUX WHEAT)

Return only the elements of list meeting PREDICATE

FILTER-OUT (PREDICATE LIST &KEY KEY &AUX WHEAT)

Return only the elements of list not meeting PREDICATE

INTERSECTION* (LISTS &KEY (TEST #'EQL) (KEY #'IDENTITY))

INTERSECTION together an arbitrary number of lists (passed in a containing list)

MAPAPPEND (FCN LIST)

Applies FCN to every element of LIST, appending the results together. Order is maintained as one might expect.

MAPCROSS (FCN LIST1 LIST2)

Applies FCN to every combination of elements from LIST1 and LIST2, returning the list of results. Order is maintained as one might expect.

MAPSUBSETS (PROC SET)

Map PROC over ever subset of SET

MAPUNION (FCN LIST &KEY (TEST #'EQL) (KEY #'IDENTITY))

Applies FCN to every element of LIST, unioning the results together. Except for removal of EQL occurences, order is maintained as one might expect.

NTRANSLATE-STRING (STRING FROM TO)

Destructively changes the characters in a string from one set to another. For example: (ntranslate-string "This" "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ") will change the string to THIS and return it. NOTE THAT THIS ACTUALLY MODIFIES THE ORIGNAL STRING; If you want to preserve the string, use TRANSLATE-STRING.

PARSE-SUBSTRINGS (STRING SEPARATOR)

Return substrings separated by separator character.

SPLIT-LIST (PREDICATE LIST)

Returns two lists extracted from list based on PREDICATE.

STABLE-NSET-DIFFERENCE (LIST1 LIST2 &KEY (TEST #'EQL))

Like NSET-DIFFERENCE, but preserves the order of the LIST1 argument

STRING+ (&REST ARGS)

Concatenate the elements of ARGS.

STRING-JOIN (STRING-LIST &OPTIONAL (SEP ))

Concatenates strings together and puts SEP between each joined substring

STRING-PREFIX-EQUALS (STRING PREFIX)

T if STRING begins with PREFIX.

STRING-REPLACE (STRING FIND REPLACE &KEY (START 0) (END NIL) (SEQUENCE-TYPE 'STRING) (TEST #'CHAR-EQUAL))

Replace occurences of FIND in STRING. REPLACE can be a string or a function which takes the matched substring and returns a replacement (can be used to preserve case, ie).

STRING-SPLIT (STR &OPTIONAL (CHAR ) COUNT)

Given a string STR, return a list of the strings between occurances of CHAR.

THIS-PATHNAME

Returns the pathname of the source file currently being loaded.

TRANSITIVE-CLOSURE (THING PROC)

PROC is a procedure of one arg that returns a list. Thing is a list of starting points, or a single non-list

TRANSLATE-STRING (STRING FROM TO)

Changes the characters in a string from one set to another. See the documentation for NTRANSLATE-STRING.

UNION* (LISTS &KEY (TEST #'EQL) (KEY #'IDENTITY))

UNION together an arbitrary number of lists (passed in a containing list)

Undocumented

ABS-MAX (MAX NUM)

ABSMIN (N MIN)

ADD-NICKNAME (PACKAGE NICKNAME)

AVERAGE (LIST)

CAR& (CONS)

CDR& (CONS)

CIRCULAR-LIST (&REST ELEMENTS)

COERCE-INTEGER (THING &KEY NO-ERROR (DEFAULT THING))

COERCE-NUMBER (THING &KEY NO-ERROR (DEFAULT THING) ALLOW-JUNK?)

CTRACE-ALL (&OPTIONAL (PACKAGE *PACKAGE*))

CTRACE-FUNCTION (FUNCTION-NAME &OPTIONAL (LEVEL 1))

CURRY (FUNCTION &REST CURRIED-ARGS)

DELETE-KEYWORD-ARG (KEY ARGLIST)

DELETE-KEYWORD-ARGS (KEYS ARGLIST)

DOTREE (FCN TREE)

DOTREE-ALL (FCN TREE)

DUMB-RELATIVE-PATHNAME (BASE REST)

DUMP (THING)

DUMP-COPY (OBJECT)

DUMP-HT (HT)

DUMP-TO-FILE (THING FILE &KEY (COMPILE T) PRELUDE (PACKAGE *PACKAGE*) PRETTY?)

DUMP-TO-STREAM (OBJECT STREAM &KEY PRETTY?)

DUMP-TO-STRING (OBJECT)

DUMP-VAR-TO-FILE (VAR FILE &KEY (COMPILE T) PRELUDE (PACKAGE *PACKAGE*) SIMPLY?)

EXTERNALP (SYMBOL)

EXTREME (LIST TEST &KEY (KEY #'IDENTITY) (RETURN-MAX NIL))

EXTREMES (LIST TEST &KEY (KEY #'IDENTITY))

FAST-STRING (OBJ)

FAST-WHITESPACEP (CHAR &OPTIONAL (WHITESPACE *WHITESPACE*))

FILE-COPY (IN OUT)

FIND-ALL (ITEM SEQUENCE &KEY (KEY #'IDENTITY) (TEST #'EQL))

FINDPROP (PROP STRUCTURE)

FIRSTN (LIST N)

FLATTEN (TREE)

FORMAT-TIME (STREAM UT COLON-FLAG AT-FLAG)

FRINGE (LIST)

GEO-MEAN (LIST)

GROUP (LIST &KEY (KEY #'IDENTITY) (TEST #'EQL))

HASH-KEYS (HT)

HT-CONTENTS (HT &KEY LIMIT)

INTEGERS (FROM TO)

KEYWORDIZE (SYMBOL)

LISTIFY (THING)

LOG2 (X)

MAPSEQUENCE (PROC SEQUENCE)

MAPSUM (FCN LIST)

MAPTREE (FCN TREE)

MAX& (A B)

MAXIMIZE (LIST &KEY (KEY #'IDENTITY) (RETURN-MAX NIL))

MAXIMUMS (LIST &KEY (KEY #'IDENTITY))

MIN& (A B)

MINIMIZE (LIST &KEY (KEY #'IDENTITY) (RETURN-MAX NIL))

MINIMUMS (LIST &KEY (KEY #'IDENTITY))

NEW-STRING (&OPTIONAL (INITIAL-LENGTH 10))

NOW

NTH-ROOT (X N)

NUMBER-OF-BITS (N)

RANDOM-ELEMENT (LIST)

RCURRY (FUNCTION &REST CURRIED-ARGS)

READ-UNTIL (STREAM END-CHAR-OR-PRED &OPTIONAL (STRING (NEW-STRING)) UNTYI-END?)

READ-UNTIL-STRING (STREAM END-STRING &OPTIONAL (STRING (NEW-STRING)))

RELATIVE-PATHNAME (BASE &OPTIONAL DIRECTORIES)

SCHAR& (STRING INDEX)

SET-EQUAL (L1 L2 &KEY (TEST #'EQ))

SHORT-DATE-TIME-STRING (UNIVERSAL-TIME &OPTIONAL (INCLUDE-TIME T) (STREAM NIL))

SIGN (NUM)

START-CTRACE (&OPTIONAL (LEVEL 1))

STD-DEV (LIST &AUX (AVERAGE (AVERAGE LIST)))

STOP-CTRACE

STREAM-COPY (IN OUT)

STREAM-COPY-BY-LINES (IN OUT)

STRING-REMOVE-CHARS (STRING CHAR-BAG)

STRING-REMOVE-WHITESPACE (STRING)

STRING-TRIM-WHITESPACE (STRING)

STRING-TRUNCATE (STRING LENGTH)

STRING-TRUNCATE-TO-WORD-BOUNDARY (STRING LIMIT)

STRING-UPPER-CASE-P (S)

SUBSEQ-SAFE (LIST FROM &OPTIONAL TO)

SVREF& (VECTOR INDEX)

SYMBOL-CONC (&REST PARTS)

SYMBOLIZE (THING)

TRANSITIVE-CLOSURE-PROCEDURE (PROC)

UNCTRACE-FUNCTION (&OPTIONAL FUNCTION-NAME)

UNIX-CURRENT-TIME

UNLISTIFY (THING)

UP-KEYWORDIZE (SYMBOL)

VECTOR->STRING (V &OPTIONAL (LEN (LENGTH V)))

VIEW-CTRACE (&OPTIONAL (TRACE *CTRACE-TOP*))

Private

Undocumented

BIG-CONCATENATE-STRINGS (LIST)

BITS (N &AUX RESULT)

CLOSEST (VALUE LIST KEY)

COMPOSE (F1 F2)

COPY-LIST-RECURSIVE (ITEM)

CTRACE-ITEM-OUT (ITEM)

DEBUG-LINE-OUT (STRING &REST ARGS)

DUMP-VAR (VAR)

FAST-PRINC-TO-STRING (OBJ)

FINDPROPS (STRUCTURE &REST PROPS)

FIRST-LINE (STRING)

GETBIT (N POS)

HT-INVERT (HT)

INSERT-BEFORE (LIST NEW BEFORE)

LAST-ELT (SEQ)

LIST-INSERT (LIST ITEM N)

LIST-TRUNCATE (LIST LENGTH)

MAPTREE-DOTS (FCN TREE)

NICE-GENSYM (PREFIX &OPTIONAL (PACKAGE *PACKAGE*))

NTRANSLATE-STRING-FAST (STRING FROM TO)

PPRINT-TO-STRING (STRUCT &OPTIONAL (RIGHT-MARGIN *PRINT-RIGHT-MARGIN*))

REBUILD-SEQUENCE (TYPE SIZE &REST ELEMENTS)

SETBIT (N POS V)

STRING-FAST-WHITESPACEP (STRING &OPTIONAL (WHITESPACE *WHITESPACE*))

STRING-SPLIT-WORDS (STR &OPTIONAL (WHITESPACE *WHITESPACE*))

STRING-TO-FILE (STRING FILE)

SUM-LIST (LIST)

UNCTRACE-FUNCTION-1 (FUNCTION-NAME)

UNDUMP-HT (TEST CONTENTS)

USE-PACKAGE-SAFELY (USED USER)

XOR (A B)

MACRO

Public

ASSOCADR (KEY ALIST &REST ASSOC-KEYWORDS)

Shorthand for (CADR (ASSOC ...))

ASSOCDR (KEY ALIST &REST ASSOC-KEYWORDS)

Shorthand for (CDR (ASSOC ...))

DEFSUBST (NAME ARGS &BODY BODY)

Define an inline function.

DOC (&REST STRING-DESIGNATORS)

Inserts newlines after every argument except the last, and calls ONE-STRING

NAMED-LAMBDA (NAME LAMBDA-LIST &BODY BODY)

Expands into a lambda-expression within whose BODY NAME denotes the corresponding function.

ONE-STRING (&REST STRING-DESIGNATORS)

Creates a single string (if its arguments are all constant strings) or a form that creates a single string (if some arguments are variables)

Undocumented

*& (&REST ARGS)

+& (&REST ARGS)

-& (&REST ARGS)

/& (&REST ARGS)

1+& (&REST ARGS)

1-& (&REST ARGS)

<& (&REST ARGS)

<=& (&REST ARGS)

=& (&REST ARGS)

>& (&REST ARGS)

>=& (&REST ARGS)

^ (X Y)

AAND (&REST ARGS)

ACOND (&REST CLAUSES)

AIF (IF THEN &OPTIONAL ELSE)

ALAMBDA (ARGS &BODY BODY)

AREF& (ARRAY &REST INDICIES)

AWHEN (TEST &BODY BODY)

COLLECTING (&BODY BODY)

CT (&BODY BODY)

CTRACE (ITEM &OPTIONAL (LEVEL 1))

D2R (DEG)

D2RI (DEG)

DECF& (&REST ARGS)

DEF-CACHED-FUNCTION (NAME ARGLIST &BODY BODY)

DEF-CACHED-FUNCTION-1 (NAME ARGLIST &BODY BODY)

DEFBIT (NAME FIELD POS)

DELETEF (THING PLACE &REST DELETE-ARGS)

DO-FOR-ARRAY-ELEMENTS (ARRAY VARS &BODY BODY)

DOLINES ((VAR STREAM) &BODY BODY)

DOSEQUENCE ((VAR SEQUENCE &OPTIONAL RESULT) &BODY BODY)

IN-BACKGROUND (NAME &BODY BODY)

INCF& (&REST ARGS)

ITRACE (FORM)

LET-GLOBALLY (CLAUSES &BODY BODY)

LOGAND& (&REST ARGS)

LOGANDC1& (&REST ARGS)

LOGIOR& (&REST ARGS)

LOGNOT& (&REST ARGS)

LOGXOR& (&REST ARGS)

MAKE-SLOT-DUMPER (CLASS &REST SLOTS)

MV-LET* (FORMS &BODY BODY)

ONCE-ONLY (VARS &BODY BODY)

PCOND (&BODY CLAUSES)

PLET (BIND-FORMS &BODY BODY)

PLET* (BIND-FORMS &BODY BODY)

PLUSP& (&REST ARGS)

POP-END (PLACE)

PUSH-END (THING PLACE)

PUSH-STRING (PLACE ADD)

PUSHNEW-END (ITEM PLACE &KEY (TEST #'EQL))

R2D (RAD)

REMOVEF (THING PLACE &REST REMOVE-ARGS)

REPLACEF (THING PLACE &REST DELETE-ARGS &KEY (KEY #'IDENTITY) &ALLOW-OTHER-KEYS)

REPORT-AND-IGNORE-ERRORS (&BODY BODY)

SUMMING (&BODY BODY)

WITH-CTRACE ((ITEM &OPTIONAL (LEVEL 1)) &BODY BODY)

WITH-CTRACING ((&OPTIONAL (LEVEL 1)) &BODY BODY)

WITHOUT-INTERRUPTS (&BODY BODY)

ZEROP& (&REST ARGS)

Private

Undocumented

ACCUMULATING (INIT FUNC &BODY BODY)

CACHED-LAMBDA (ARGLIST &BODY BODY)

DEBUG-TRACE (LEVEL STRING &REST ARGS)

DEF-FIXNUM-OP (INT-NAME REG-NAME &OPTIONAL (RESULT-TYPE 'FIXNUM))

DO-FOR-ARRAY-ELEMENTS-1 (ARRAY VARS DIM &BODY BODY)

INT (X)

LET*-DEBUG (FORMS &BODY BODY)

MINUSP& (&REST ARGS)

MOD& (&REST ARGS)

NEQ (A B)

NON-NIL (VAR)

PLABELS (DEF-FORMS &BODY BODY)

RETURN-ERRORS (&BODY BODY)

RETURN-FROM-IF (BLOCK VAL)

RETURN-IF (VAL)

WITH-DEBUG-TRACE ((LEVEL STRING &REST ARGS) &BODY BODY)

GENERIC-FUNCTION

Public

Undocumented

DUMP-FORM (R)

OGET (O PROPERTY &OPTIONAL (DEFAULT))

OPUT (O PROPERTY VALUE)

SLOT-DUMP-FORMS (D)

SUBCLASSES (C)

SUPERCLASSES (C)

Private

Undocumented

STREAM-LINE-LENGTH (W)

VARIABLE

Public

Undocumented

*WHITESPACE*

Private

Undocumented

*CTRACE-CURRENT-ITEM*

*CTRACE-LEVEL*

*CTRACED-FUNCTIONS*

*DEBUG-INDENT-LEVEL*

*DEBUG-LEVEL*

*DEBUG-STREAM*

*DUMP-TEMP-PACKAGE*

*DUMPING-TO-FILE*

*PREPASS*

CLASS

Public

Undocumented

PLIST-MIXIN

Private

Undocumented

FRED-WINDOW

GLOBALLY-NAMED-OBJECT-MIXIN

TRACE-WINDOW

CONSTANT

Public

Undocumented

2PI

DEGREES-TO-RADIANS

PI/2

PI/4

RADIANS-TO-DEGREES

SINGLE-PI