CL
iki
the common lisp wiki
Home
Recent Changes
About CLiki
Text Formatting
Create New Page
Edit ``Common Lisp Utilities''
Note: this page is for historical purposes. See _(cl-utilities) for the finished product.
The _(Common Lisp Utilities) cliki page served as a collection of useful CL utilities. The idea to create a bigger package out of the small suggested packages here got momentum, and resulted in the creation of _(cl-utilities).
Motivated by the benefits of discussing design issues in public, possibly utilities "that everyone writes" could be canonicalized and (semi-)standardized.
_(SPLIT-SEQUENCE)
_(EXTREMUM)
_(READ-DELIMITED) (name is up to debate) - reads a 'line' delimited by the specified character, optionally into a pre-allocated buffer
_(EXPT-MOD) (name is up to debate) - calculates (mod (expt a b) m)
_(COLLECTING) for collecting things into one or more lists
_(WITH-UNIQUE-NAMES) executes a series of forms with variables bound to fresh, uninterned symbols
_(GENSYMLET) binds fresh, uninterned symbols to values
_(ROTATE-BYTE) bit-rotates a byte
ARGUMENT-LIST (name, purpose, raison d'etre up for debate) returns the arglist of a function - useful for editor interfaces, documentation generators etc. Code could be stolen from _(ILISP)/_(SLIME)/_(clocc-port) for implementations that don't have their own.
_(SHALLOW-COPY-ARRAY)
_(COMPOSE) composes functions.
Also worth looking at _(PARSE-NUMBER)
_(DECIMAL-NUMBER)
Please supply your name and a summary of changes for the Recent Changes page. If you are making a minor alteration to a page you recently edited, you can avoid making another Recent Changes entry by leaving the Summary box blank
Summary of changes:
Captcha (enter the word "lisp" here):
Your name:
Check this box to fill in your name automatically next time
(uses a cookie)