This is the alexandria Reference Manual, version 1.0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 03:14:10 2024 GMT+0.
alexandria/alexandria.asd
alexandria/alexandria-1/package.lisp
alexandria/alexandria-1/definitions.lisp
alexandria/alexandria-1/binding.lisp
alexandria/alexandria-1/strings.lisp
alexandria/alexandria-1/conditions.lisp
alexandria/alexandria-1/io.lisp
alexandria/alexandria-1/macros.lisp
alexandria/alexandria-1/hash-tables.lisp
alexandria/alexandria-1/control-flow.lisp
alexandria/alexandria-1/symbols.lisp
alexandria/alexandria-1/functions.lisp
alexandria/alexandria-1/lists.lisp
alexandria/alexandria-1/types.lisp
alexandria/alexandria-1/arrays.lisp
alexandria/alexandria-1/sequences.lisp
alexandria/alexandria-1/numbers.lisp
alexandria/alexandria-1/features.lisp
alexandria/alexandria-2/package.lisp
alexandria/alexandria-2/arrays.lisp
alexandria/alexandria-2/control-flow.lisp
alexandria/alexandria-2/sequences.lisp
alexandria/alexandria-2/lists.lisp
The main system appears first, followed by any subsystem dependency.
alexandria
Alexandria is a collection of portable public domain utilities.
Nikodemus Siivola and others.
Public Domain / 0-clause MIT
Alexandria is a project and a library.
As a project Alexandria’s goal is to reduce duplication of effort and improve
portability of Common Lisp code according to its own idiosyncratic and rather
conservative aesthetic.
As a library Alexandria is one of the means by which the project strives for
its goals.
Alexandria is a collection of portable public domain utilities that meet
the following constraints:
* Utilities, not extensions: Alexandria will not contain conceptual
extensions to Common Lisp, instead limiting itself to tools and utilities
that fit well within the framework of standard ANSI Common Lisp.
Test-frameworks, system definitions, logging facilities, serialization
layers, etc. are all outside the scope of Alexandria as a library, though
well within the scope of Alexandria as a project.
* Conservative: Alexandria limits itself to what project members consider
conservative utilities. Alexandria does not and will not include anaphoric
constructs, loop-like binding macros, etc.
Also, its exported symbols are being imported by many other packages
already, so each new export carries the danger of causing conflicts.
* Portable: Alexandria limits itself to portable parts of Common Lisp. Even
apparently conservative and useful functions remain outside the scope of
Alexandria if they cannot be implemented portably. Portability is here
defined as portable within a conforming implementation: implementation bugs
are not considered portability issues.
* Team player: Alexandria will not (initially, at least) subsume or provide functionality for which good-quality special-purpose packages exist, like split-sequence. Instead, third party packages such as that may be "blessed".
1.0.1
licence
(file).
alexandria-1
(module).
alexandria-2
(module).
Modules are listed depth-first from the system components tree.
alexandria/alexandria-1
alexandria
(system).
tests.lisp
(file).
package.lisp
(file).
definitions.lisp
(file).
binding.lisp
(file).
strings.lisp
(file).
conditions.lisp
(file).
io.lisp
(file).
macros.lisp
(file).
hash-tables.lisp
(file).
control-flow.lisp
(file).
symbols.lisp
(file).
functions.lisp
(file).
lists.lisp
(file).
types.lisp
(file).
arrays.lisp
(file).
sequences.lisp
(file).
numbers.lisp
(file).
features.lisp
(file).
alexandria/alexandria-2
alexandria
(system).
tests.lisp
(file).
package.lisp
(file).
arrays.lisp
(file).
control-flow.lisp
(file).
sequences.lisp
(file).
lists.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
alexandria/alexandria.asd
alexandria/alexandria-1/package.lisp
alexandria/alexandria-1/definitions.lisp
alexandria/alexandria-1/binding.lisp
alexandria/alexandria-1/strings.lisp
alexandria/alexandria-1/conditions.lisp
alexandria/alexandria-1/io.lisp
alexandria/alexandria-1/macros.lisp
alexandria/alexandria-1/hash-tables.lisp
alexandria/alexandria-1/control-flow.lisp
alexandria/alexandria-1/symbols.lisp
alexandria/alexandria-1/functions.lisp
alexandria/alexandria-1/lists.lisp
alexandria/alexandria-1/types.lisp
alexandria/alexandria-1/arrays.lisp
alexandria/alexandria-1/sequences.lisp
alexandria/alexandria-1/numbers.lisp
alexandria/alexandria-1/features.lisp
alexandria/alexandria-2/package.lisp
alexandria/alexandria-2/arrays.lisp
alexandria/alexandria-2/control-flow.lisp
alexandria/alexandria-2/sequences.lisp
alexandria/alexandria-2/lists.lisp
alexandria/alexandria-1/definitions.lisp
package.lisp
(file).
alexandria-1
(module).
define-constant
(macro).
%reevaluate-constant
(function).
alexandria/alexandria-1/binding.lisp
package.lisp
(file).
alexandria-1
(module).
alexandria/alexandria-1/strings.lisp
package.lisp
(file).
alexandria-1
(module).
string-designator
(type).
alexandria/alexandria-1/conditions.lisp
package.lisp
(file).
alexandria-1
(module).
ignore-some-conditions
(macro).
required-argument
(function).
simple-parse-error
(function).
simple-parse-error
(condition).
simple-program-error
(function).
simple-program-error
(condition).
simple-reader-error
(function).
simple-reader-error
(condition).
simple-style-warning
(function).
simple-style-warning
(condition).
unwind-protect-case
(macro).
alexandria/alexandria-1/io.lisp
package.lisp
(file).
macros.lisp
(file).
lists.lisp
(file).
types.lisp
(file).
alexandria-1
(module).
copy-file
(function).
copy-stream
(function).
read-file-into-byte-vector
(function).
read-file-into-string
(function).
read-stream-content-into-byte-vector
(function).
read-stream-content-into-string
(function).
with-input-from-file
(macro).
with-output-to-file
(macro).
write-byte-vector-into-file
(function).
write-string-into-file
(function).
default-element-type
(function).
with-open-file*
(macro).
alexandria/alexandria-1/macros.lisp
package.lisp
(file).
strings.lisp
(file).
symbols.lisp
(file).
alexandria-1
(module).
destructuring-case
(macro).
destructuring-ccase
(macro).
destructuring-ecase
(macro).
once-only
(macro).
parse-body
(function).
parse-ordinary-lambda-list
(function).
with-gensyms
(macro).
with-unique-names
(macro).
expand-destructuring-case
(function).
alexandria/alexandria-1/hash-tables.lisp
package.lisp
(file).
macros.lisp
(file).
alexandria-1
(module).
alist-hash-table
(function).
copy-hash-table
(function).
ensure-gethash
(macro).
hash-table-alist
(function).
hash-table-keys
(function).
hash-table-plist
(function).
hash-table-values
(function).
maphash-keys
(function).
maphash-values
(function).
plist-hash-table
(function).
alexandria/alexandria-1/control-flow.lisp
package.lisp
(file).
definitions.lisp
(file).
macros.lisp
(file).
alexandria-1
(module).
cswitch
(macro).
eswitch
(macro).
multiple-value-prog2
(macro).
nth-value-or
(macro).
switch
(macro).
whichever
(macro).
xor
(macro).
extract-function-name
(function).
generate-switch-body
(function).
alexandria/alexandria-1/symbols.lisp
package.lisp
(file).
alexandria-1
(module).
ensure-symbol
(function).
format-symbol
(function).
make-gensym
(function).
make-gensym-list
(function).
make-keyword
(function).
symbolicate
(function).
maybe-intern
(function).
alexandria/alexandria-1/functions.lisp
package.lisp
(file).
symbols.lisp
(file).
macros.lisp
(file).
alexandria-1
(module).
compose
(compiler macro).
compose
(function).
conjoin
(function).
curry
(compiler macro).
curry
(function).
disjoin
(function).
ensure-function
(function).
ensure-functionf
(macro).
multiple-value-compose
(compiler macro).
multiple-value-compose
(function).
named-lambda
(macro).
rcurry
(compiler macro).
rcurry
(function).
ensure-functionf/1
(macro).
alexandria/alexandria-1/lists.lisp
package.lisp
(file).
functions.lisp
(file).
alexandria-1
(module).
alist-plist
(function).
appendf
(macro).
(setf assoc-value)
(setf expander).
assoc-value
(function).
circular-list
(function).
circular-list
(type).
circular-list-p
(function).
circular-tree-p
(function).
delete-from-plist
(function).
delete-from-plistf
(macro).
doplist
(macro).
ensure-car
(function).
ensure-cons
(function).
ensure-list
(function).
flatten
(function).
lastcar
(function).
(setf lastcar)
(function).
make-circular-list
(function).
map-product
(function).
mappend
(function).
nconcf
(macro).
nreversef
(macro).
nunionf
(macro).
plist-alist
(function).
proper-list
(type).
proper-list-length
(function).
proper-list-p
(function).
(setf rassoc-value)
(setf expander).
rassoc-value
(function).
remove-from-plist
(function).
remove-from-plistf
(macro).
reversef
(macro).
set-equal
(function).
setp
(function).
unionf
(macro).
circular-list-error
(function).
malformed-plist
(function).
racons
(function).
safe-endp
(function).
sans
(function).
alexandria/alexandria-1/types.lisp
package.lisp
(file).
symbols.lisp
(file).
lists.lisp
(file).
alexandria-1
(module).
array-index
(type).
array-length
(type).
coercef
(macro).
negative-double-float
(type).
negative-double-float-p
(function).
negative-fixnum
(type).
negative-fixnum-p
(function).
negative-float
(type).
negative-float-p
(function).
negative-integer
(type).
negative-integer-p
(function).
negative-long-float
(type).
negative-long-float-p
(function).
negative-rational
(type).
negative-rational-p
(function).
negative-real
(type).
negative-real-p
(function).
negative-short-float
(type).
negative-short-float-p
(function).
negative-single-float
(type).
negative-single-float-p
(function).
non-negative-double-float
(type).
non-negative-double-float-p
(function).
non-negative-fixnum
(type).
non-negative-fixnum-p
(function).
non-negative-float
(type).
non-negative-float-p
(function).
non-negative-integer
(type).
non-negative-integer-p
(function).
non-negative-long-float
(type).
non-negative-long-float-p
(function).
non-negative-rational
(type).
non-negative-rational-p
(function).
non-negative-real
(type).
non-negative-real-p
(function).
non-negative-short-float
(type).
non-negative-short-float-p
(function).
non-negative-single-float
(type).
non-negative-single-float-p
(function).
non-positive-double-float
(type).
non-positive-double-float-p
(function).
non-positive-fixnum
(type).
non-positive-fixnum-p
(function).
non-positive-float
(type).
non-positive-float-p
(function).
non-positive-integer
(type).
non-positive-integer-p
(function).
non-positive-long-float
(type).
non-positive-long-float-p
(function).
non-positive-rational
(type).
non-positive-rational-p
(function).
non-positive-real
(type).
non-positive-real-p
(function).
non-positive-short-float
(type).
non-positive-short-float-p
(function).
non-positive-single-float
(type).
non-positive-single-float-p
(function).
of-type
(compiler macro).
of-type
(function).
positive-double-float
(type).
positive-double-float-p
(function).
positive-fixnum
(type).
positive-fixnum-p
(function).
positive-float
(type).
positive-float-p
(function).
positive-integer
(type).
positive-integer-p
(function).
positive-long-float
(type).
positive-long-float-p
(function).
positive-rational
(type).
positive-rational-p
(function).
positive-real
(type).
positive-real-p
(function).
positive-short-float
(type).
positive-short-float-p
(function).
positive-single-float
(type).
positive-single-float-p
(function).
type=
(function).
alexandria/alexandria-1/arrays.lisp
package.lisp
(file).
types.lisp
(file).
alexandria-1
(module).
copy-array
(function).
alexandria/alexandria-1/sequences.lisp
package.lisp
(file).
lists.lisp
(file).
types.lisp
(file).
alexandria-1
(module).
copy-sequence
(function).
deletef
(macro).
emptyp
(compiler macro).
ends-with
(function).
ends-with-subseq
(function).
extremum
(function).
first-elt
(function).
(setf first-elt)
(function).
last-elt
(function).
(setf last-elt)
(function).
length=
(compiler macro).
length=
(function).
map-combinations
(function).
map-derangements
(function).
map-permutations
(function).
proper-sequence
(type).
random-elt
(function).
removef
(macro).
rotate
(function).
sequence-of-length-p
(function).
shuffle
(function).
starts-with
(function).
starts-with-subseq
(function).
delete/swapped-arguments
(function).
remove/swapped-arguments
(function).
rotate-head-to-tail
(function).
rotate-tail-to-head
(function).
alexandria/alexandria-1/numbers.lisp
package.lisp
(file).
sequences.lisp
(file).
alexandria-1
(module).
binomial-coefficient
(function).
clamp
(function).
count-permutations
(function).
factorial
(function).
gaussian-random
(function).
iota
(function).
lerp
(function).
map-iota
(function).
maxf
(macro).
mean
(function).
median
(function).
minf
(macro).
standard-deviation
(function).
subfactorial
(function).
variance
(function).
%factorial
(function).
%multiply-range
(function).
+factorial-bisection-range-limit+
(constant).
+factorial-direct-multiplication-limit+
(constant).
alexandria/alexandria-1/features.lisp
package.lisp
(file).
control-flow.lisp
(file).
alexandria-1
(module).
featurep
(function).
alexandria/alexandria-2/arrays.lisp
package.lisp
(file).
alexandria-2
(module).
dim-in-bounds-p
(function).
rmajor-to-indices
(function).
row-major-index
(function).
alexandria/alexandria-2/control-flow.lisp
package.lisp
(file).
alexandria-2
(module).
line-up-first
(macro).
line-up-last
(macro).
line-up-iter
(function).
alexandria/alexandria-2/sequences.lisp
package.lisp
(file).
alexandria-2
(module).
subseq*
(function).
alexandria/alexandria-2/lists.lisp
package.lisp
(file).
alexandria-2
(module).
delete-from-plist*
(function).
Packages are listed by definition order.
alexandria
alexandria.1.0.0
alexandria-1
common-lisp
.
alist-hash-table
(function).
alist-plist
(function).
appendf
(macro).
array-index
(type).
array-length
(type).
(setf assoc-value)
(setf expander).
assoc-value
(function).
binomial-coefficient
(function).
circular-list
(function).
circular-list
(type).
circular-list-p
(function).
circular-tree-p
(function).
clamp
(function).
coercef
(macro).
compose
(compiler macro).
compose
(function).
conjoin
(function).
copy-array
(function).
copy-file
(function).
copy-hash-table
(function).
copy-sequence
(function).
copy-stream
(function).
count-permutations
(function).
cswitch
(macro).
curry
(compiler macro).
curry
(function).
define-constant
(macro).
delete-from-plist
(function).
delete-from-plistf
(macro).
deletef
(macro).
destructuring-case
(macro).
destructuring-ccase
(macro).
destructuring-ecase
(macro).
disjoin
(function).
doplist
(macro).
emptyp
(compiler macro).
emptyp
(generic function).
ends-with
(function).
ends-with-subseq
(function).
ensure-car
(function).
ensure-cons
(function).
ensure-function
(function).
ensure-functionf
(macro).
ensure-gethash
(macro).
ensure-list
(function).
ensure-symbol
(function).
eswitch
(macro).
extremum
(function).
factorial
(function).
featurep
(function).
first-elt
(function).
(setf first-elt)
(function).
flatten
(function).
format-symbol
(function).
gaussian-random
(function).
hash-table-alist
(function).
hash-table-keys
(function).
hash-table-plist
(function).
hash-table-values
(function).
if-let
(macro).
ignore-some-conditions
(macro).
iota
(function).
last-elt
(function).
(setf last-elt)
(function).
lastcar
(function).
(setf lastcar)
(function).
length=
(compiler macro).
length=
(function).
lerp
(function).
make-circular-list
(function).
make-gensym
(function).
make-gensym-list
(function).
make-keyword
(function).
map-combinations
(function).
map-derangements
(function).
map-iota
(function).
map-permutations
(function).
map-product
(function).
maphash-keys
(function).
maphash-values
(function).
mappend
(function).
maxf
(macro).
mean
(function).
median
(function).
minf
(macro).
multiple-value-compose
(compiler macro).
multiple-value-compose
(function).
multiple-value-prog2
(macro).
named-lambda
(macro).
nconcf
(macro).
negative-double-float
(type).
negative-double-float-p
(function).
negative-fixnum
(type).
negative-fixnum-p
(function).
negative-float
(type).
negative-float-p
(function).
negative-integer
(type).
negative-integer-p
(function).
negative-long-float
(type).
negative-long-float-p
(function).
negative-rational
(type).
negative-rational-p
(function).
negative-real
(type).
negative-real-p
(function).
negative-short-float
(type).
negative-short-float-p
(function).
negative-single-float
(type).
negative-single-float-p
(function).
non-negative-double-float
(type).
non-negative-double-float-p
(function).
non-negative-fixnum
(type).
non-negative-fixnum-p
(function).
non-negative-float
(type).
non-negative-float-p
(function).
non-negative-integer
(type).
non-negative-integer-p
(function).
non-negative-long-float
(type).
non-negative-long-float-p
(function).
non-negative-rational
(type).
non-negative-rational-p
(function).
non-negative-real
(type).
non-negative-real-p
(function).
non-negative-short-float
(type).
non-negative-short-float-p
(function).
non-negative-single-float
(type).
non-negative-single-float-p
(function).
non-positive-double-float
(type).
non-positive-double-float-p
(function).
non-positive-fixnum
(type).
non-positive-fixnum-p
(function).
non-positive-float
(type).
non-positive-float-p
(function).
non-positive-integer
(type).
non-positive-integer-p
(function).
non-positive-long-float
(type).
non-positive-long-float-p
(function).
non-positive-rational
(type).
non-positive-rational-p
(function).
non-positive-real
(type).
non-positive-real-p
(function).
non-positive-short-float
(type).
non-positive-short-float-p
(function).
non-positive-single-float
(type).
non-positive-single-float-p
(function).
nreversef
(macro).
nth-value-or
(macro).
nunionf
(macro).
of-type
(compiler macro).
of-type
(function).
once-only
(macro).
parse-body
(function).
parse-ordinary-lambda-list
(function).
plist-alist
(function).
plist-hash-table
(function).
positive-double-float
(type).
positive-double-float-p
(function).
positive-fixnum
(type).
positive-fixnum-p
(function).
positive-float
(type).
positive-float-p
(function).
positive-integer
(type).
positive-integer-p
(function).
positive-long-float
(type).
positive-long-float-p
(function).
positive-rational
(type).
positive-rational-p
(function).
positive-real
(type).
positive-real-p
(function).
positive-short-float
(type).
positive-short-float-p
(function).
positive-single-float
(type).
positive-single-float-p
(function).
proper-list
(type).
proper-list-length
(function).
proper-list-p
(function).
proper-sequence
(type).
random-elt
(function).
(setf rassoc-value)
(setf expander).
rassoc-value
(function).
rcurry
(compiler macro).
rcurry
(function).
read-file-into-byte-vector
(function).
read-file-into-string
(function).
read-stream-content-into-byte-vector
(function).
read-stream-content-into-string
(function).
remove-from-plist
(function).
remove-from-plistf
(macro).
removef
(macro).
required-argument
(function).
reversef
(macro).
rotate
(function).
sequence-of-length-p
(function).
set-equal
(function).
setp
(function).
shuffle
(function).
simple-parse-error
(function).
simple-parse-error
(condition).
simple-program-error
(function).
simple-program-error
(condition).
simple-reader-error
(function).
simple-reader-error
(condition).
simple-style-warning
(function).
simple-style-warning
(condition).
standard-deviation
(function).
starts-with
(function).
starts-with-subseq
(function).
string-designator
(type).
subfactorial
(function).
switch
(macro).
symbolicate
(function).
type=
(function).
unionf
(macro).
unwind-protect-case
(macro).
variance
(function).
when-let
(macro).
when-let*
(macro).
whichever
(macro).
with-gensyms
(macro).
with-input-from-file
(macro).
with-output-to-file
(macro).
with-unique-names
(macro).
write-byte-vector-into-file
(function).
write-string-into-file
(function).
xor
(macro).
%factorial
(function).
%multiply-range
(function).
%reevaluate-constant
(function).
+factorial-bisection-range-limit+
(constant).
+factorial-direct-multiplication-limit+
(constant).
circular-list-error
(function).
default-element-type
(function).
delete/swapped-arguments
(function).
ensure-functionf/1
(macro).
expand-destructuring-case
(function).
extract-function-name
(function).
generate-switch-body
(function).
malformed-plist
(function).
maybe-intern
(function).
racons
(function).
remove/swapped-arguments
(function).
rotate-head-to-tail
(function).
rotate-tail-to-head
(function).
safe-endp
(function).
sans
(function).
with-open-file*
(macro).
alexandria-2
alexandria.2
alexandria
.
common-lisp
.
delete-from-plist*
(function).
dim-in-bounds-p
(function).
line-up-first
(macro).
line-up-last
(macro).
rmajor-to-indices
(function).
row-major-index
(function).
subseq*
(function).
line-up-iter
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Modify-macro for APPEND. Appends LISTS to the place designated by the first argument.
Modify-macro for COERCE.
Like SWITCH, but signals a continuable error if no key matches.
Ensures that the global variable named by NAME is a constant with a value
that is equal under TEST to the result of evaluating INITIAL-VALUE. TEST is a
/function designator/ that defaults to EQL. If DOCUMENTATION is given, it
becomes the documentation string of the constant.
Signals an error if NAME is already a bound non-constant variable.
Signals an error if NAME is already a constant variable whose value is not equal under TEST to result of evaluating INITIAL-VALUE.
Modify macro for DELETE-FROM-PLIST.
Modify-macro for DELETE. Sets place designated by the first argument to the result of calling DELETE with ITEM, place, and the KEYWORD-ARGUMENTS.
DESTRUCTURING-CASE, -CCASE, and -ECASE are a combination of CASE and DESTRUCTURING-BIND.
KEYFORM must evaluate to a CONS.
Clauses are of the form:
((CASE-KEYS . DESTRUCTURING-LAMBDA-LIST) FORM*)
The clause whose CASE-KEYS matches CAR of KEY, as if by CASE, CCASE, or ECASE,
is selected, and FORMs are then executed with CDR of KEY is destructured and
bound by the DESTRUCTURING-LAMBDA-LIST.
Example:
(defun dcase (x)
(destructuring-case x
((:foo a b)
(format nil "foo: ~S, ~S" a b))
((:bar &key a b)
(format nil "bar: ~S, ~S" a b))
(((:alt1 :alt2) a)
(format nil "alt: ~S" a))
((t &rest rest)
(format nil "unknown: ~S" rest))))
(dcase (list :foo 1 2)) ; => "foo: 1, 2"
(dcase (list :bar :a 1 :b 2)) ; => "bar: 1, 2"
(dcase (list :alt1 1)) ; => "alt: 1"
(dcase (list :alt2 2)) ; => "alt: 2"
(dcase (list :quux 1 2 3)) ; => "unknown: 1, 2, 3"
(defun decase (x)
(destructuring-case x
((:foo a b)
(format nil "foo: ~S, ~S" a b))
((:bar &key a b)
(format nil "bar: ~S, ~S" a b))
(((:alt1 :alt2) a)
(format nil "alt: ~S" a))))
(decase (list :foo 1 2)) ; => "foo: 1, 2"
(decase (list :bar :a 1 :b 2)) ; => "bar: 1, 2"
(decase (list :alt1 1)) ; => "alt: 1"
(decase (list :alt2 2)) ; => "alt: 2"
(decase (list :quux 1 2 3)) ; =| error
DESTRUCTURING-CASE, -CCASE, and -ECASE are a combination of CASE and DESTRUCTURING-BIND.
KEYFORM must evaluate to a CONS.
Clauses are of the form:
((CASE-KEYS . DESTRUCTURING-LAMBDA-LIST) FORM*)
The clause whose CASE-KEYS matches CAR of KEY, as if by CASE, CCASE, or ECASE,
is selected, and FORMs are then executed with CDR of KEY is destructured and
bound by the DESTRUCTURING-LAMBDA-LIST.
Example:
(defun dcase (x)
(destructuring-case x
((:foo a b)
(format nil "foo: ~S, ~S" a b))
((:bar &key a b)
(format nil "bar: ~S, ~S" a b))
(((:alt1 :alt2) a)
(format nil "alt: ~S" a))
((t &rest rest)
(format nil "unknown: ~S" rest))))
(dcase (list :foo 1 2)) ; => "foo: 1, 2"
(dcase (list :bar :a 1 :b 2)) ; => "bar: 1, 2"
(dcase (list :alt1 1)) ; => "alt: 1"
(dcase (list :alt2 2)) ; => "alt: 2"
(dcase (list :quux 1 2 3)) ; => "unknown: 1, 2, 3"
(defun decase (x)
(destructuring-case x
((:foo a b)
(format nil "foo: ~S, ~S" a b))
((:bar &key a b)
(format nil "bar: ~S, ~S" a b))
(((:alt1 :alt2) a)
(format nil "alt: ~S" a))))
(decase (list :foo 1 2)) ; => "foo: 1, 2"
(decase (list :bar :a 1 :b 2)) ; => "bar: 1, 2"
(decase (list :alt1 1)) ; => "alt: 1"
(decase (list :alt2 2)) ; => "alt: 2"
(decase (list :quux 1 2 3)) ; =| error
DESTRUCTURING-CASE, -CCASE, and -ECASE are a combination of CASE and DESTRUCTURING-BIND.
KEYFORM must evaluate to a CONS.
Clauses are of the form:
((CASE-KEYS . DESTRUCTURING-LAMBDA-LIST) FORM*)
The clause whose CASE-KEYS matches CAR of KEY, as if by CASE, CCASE, or ECASE,
is selected, and FORMs are then executed with CDR of KEY is destructured and
bound by the DESTRUCTURING-LAMBDA-LIST.
Example:
(defun dcase (x)
(destructuring-case x
((:foo a b)
(format nil "foo: ~S, ~S" a b))
((:bar &key a b)
(format nil "bar: ~S, ~S" a b))
(((:alt1 :alt2) a)
(format nil "alt: ~S" a))
((t &rest rest)
(format nil "unknown: ~S" rest))))
(dcase (list :foo 1 2)) ; => "foo: 1, 2"
(dcase (list :bar :a 1 :b 2)) ; => "bar: 1, 2"
(dcase (list :alt1 1)) ; => "alt: 1"
(dcase (list :alt2 2)) ; => "alt: 2"
(dcase (list :quux 1 2 3)) ; => "unknown: 1, 2, 3"
(defun decase (x)
(destructuring-case x
((:foo a b)
(format nil "foo: ~S, ~S" a b))
((:bar &key a b)
(format nil "bar: ~S, ~S" a b))
(((:alt1 :alt2) a)
(format nil "alt: ~S" a))))
(decase (list :foo 1 2)) ; => "foo: 1, 2"
(decase (list :bar :a 1 :b 2)) ; => "bar: 1, 2"
(decase (list :alt1 1)) ; => "alt: 1"
(decase (list :alt2 2)) ; => "alt: 2"
(decase (list :quux 1 2 3)) ; =| error
Iterates over elements of PLIST. BODY can be preceded by declarations, and is like a TAGBODY. RETURN may be used to terminate the iteration early. If RETURN is not used, returns VALUES.
Multiple-place modify macro for ENSURE-FUNCTION: ensures that each of PLACES contains a function.
Like GETHASH, but if KEY is not found in the HASH-TABLE saves the DEFAULT under key before returning it. Secondary return value is true if key was already in the table.
Like SWITCH, but signals an error if no key matches.
Creates new variable bindings, and conditionally executes either
THEN-FORM or ELSE-FORM. ELSE-FORM defaults to NIL.
BINDINGS must be either single binding of the form:
(variable initial-form)
or a list of bindings of the form:
((variable-1 initial-form-1)
(variable-2 initial-form-2)
...
(variable-n initial-form-n))
All initial-forms are executed sequentially in the specified order. Then all
the variables are bound to the corresponding values.
If all variables were bound to true values, the THEN-FORM is executed with the bindings in effect, otherwise the ELSE-FORM is executed with the bindings in effect.
Similar to CL:IGNORE-ERRORS but the (unevaluated) CONDITIONS list determines which specific conditions are to be ignored.
Lines up FORMS elements as the first argument of their successor.
Example:
(line-up-first
5
(+ 20)
/
(+ 40))
is equivalent to:
(+ (/ (+ 5 20)) 40)
Note how the single ’/ got converted into a list before threading.
Lines up FORMS elements as the last argument of their successor.
Example:
(line-up-last
5
(+ 20)
/
(+ 40))
is equivalent to:
(+ 40 (/ (+ 20 5)))
Note how the single ’/ got converted into a list before threading.
Modify-macro for MAX. Sets place designated by the first argument to the maximum of its original value and NUMBERS.
Modify-macro for MIN. Sets place designated by the first argument to the minimum of its original value and NUMBERS.
Evaluates FIRST-FORM, then SECOND-FORM, and then FORMS. Yields as its value all the value returned by SECOND-FORM.
Expands into a lambda-expression within whose BODY NAME denotes the corresponding function.
Modify-macro for NCONC. Concatenates LISTS to place designated by the first argument.
Modify-macro for NREVERSE. Reverses the list stored in the given place by destructively modifying it and saves back the result into the place.
Evaluates FORM arguments one at a time, until the NTH-VALUE returned by one of the forms is true. It then returns all the values returned by evaluating that form. If none of the forms return a true nth value, this form returns NIL.
Modify-macro for NUNION. Saves the union of LIST and the contents of the place designated by the first argument to the designated place. May modify either argument.
Constructs code whose primary goal is to help automate the handling of
multiple evaluation within macros. Multiple evaluation is handled by introducing
intermediate variables, in order to reuse the result of an expression.
The returned value is a list of the form
(let ((<gensym-1> <expr-1>)
...
(<gensym-n> <expr-n>))
<res>)
where GENSYM-1, ..., GENSYM-N are the intermediate variables introduced in order
to evaluate EXPR-1, ..., EXPR-N once, only. RES is code that is the result of
evaluating the implicit progn FORMS within a special context determined by
SPECS. RES should make use of (reference) the intermediate variables.
Each element within SPECS is either a symbol SYMBOL or a pair (SYMBOL INITFORM).
Bare symbols are equivalent to the pair (SYMBOL SYMBOL).
Each pair (SYMBOL INITFORM) specifies a single intermediate variable:
- INITFORM is an expression evaluated to produce EXPR-i
- SYMBOL is the name of the variable that will be bound around FORMS to the
corresponding gensym GENSYM-i, in order for FORMS to generate RES that
references the intermediate variable
The evaluation of INITFORMs and binding of SYMBOLs resembles LET. INITFORMs of
all the pairs are evaluated before binding SYMBOLs and evaluating FORMS.
Example:
The following expression
(let ((x ’(incf y)))
(once-only (x)
‘(cons ,x ,x)))
;;; =>
;;; (let ((#1=#:X123 (incf y)))
;;; (cons #1# #1#))
could be used within a macro to avoid multiple evaluation like so
(defmacro cons1 (x)
(once-only (x)
‘(cons ,x ,x)))
(let ((y 0))
(cons1 (incf y)))
;;; => (1 . 1)
Example:
The following expression demonstrates the usage of the INITFORM field
(let ((expr ’(incf y)))
(once-only ((var ‘(1+ ,expr)))
‘(list ’,expr ,var ,var)))
;;; =>
;;; (let ((#1=#:VAR123 (1+ (incf y))))
;;; (list ’(incf y) #1# #1))
which could be used like so
(defmacro print-succ-twice (expr)
(once-only ((var ‘(1+ ,expr)))
‘(format t "Expr: ~s, Once: ~s, Twice: ~s~%" ’,expr ,var ,var)))
(let ((y 10))
(print-succ-twice (incf y)))
;;; >>
;;; Expr: (INCF Y), Once: 12, Twice: 12
Modify macro for REMOVE-FROM-PLIST.
Modify-macro for REMOVE. Sets place designated by the first argument to the result of calling REMOVE with ITEM, place, and the KEYWORD-ARGUMENTS.
Modify-macro for REVERSE. Copies and reverses the list stored in the given place and saves back the result into the place.
Evaluates first matching clause, returning its values, or evaluates and returns the values of T or OTHERWISE if no keys match.
Modify-macro for UNION. Saves the union of LIST and the contents of the place designated by the first argument to the designated place.
Like CL:UNWIND-PROTECT, but you can specify the circumstances that
the cleanup CLAUSES are run.
clauses ::= (:NORMAL form*)* | (:ABORT form*)* | (:ALWAYS form*)*
Clauses can be given in any order, and more than one clause can be
given for each circumstance. The clauses whose denoted circumstance
occured, are executed in the order the clauses appear.
ABORT-FLAG is the name of a variable that will be bound to T in
CLAUSES if the PROTECTED-FORM aborted preemptively, and to NIL
otherwise.
Examples:
(unwind-protect-case ()
(protected-form)
(:normal (format t "This is only evaluated if PROTECTED-FORM executed normally.~%"))
(:abort (format t "This is only evaluated if PROTECTED-FORM aborted preemptively.~%"))
(:always (format t "This is evaluated in either case.~%")))
(unwind-protect-case (aborted-p)
(protected-form)
(:always (perform-cleanup-if aborted-p)))
Creates new variable bindings, and conditionally executes FORMS.
BINDINGS must be either single binding of the form:
(variable initial-form)
or a list of bindings of the form:
((variable-1 initial-form-1)
(variable-2 initial-form-2)
...
(variable-n initial-form-n))
All initial-forms are executed sequentially in the specified order. Then all
the variables are bound to the corresponding values.
If all variables were bound to true values, then FORMS are executed as an implicit PROGN.
Creates new variable bindings, and conditionally executes BODY.
BINDINGS must be either single binding of the form:
(variable initial-form)
or a list of bindings of the form:
((variable-1 initial-form-1)
(variable-2 initial-form-2)
...
(variable-n initial-form-n))
Each INITIAL-FORM is executed in turn, and the variable bound to the
corresponding value. INITIAL-FORM expressions can refer to variables
previously bound by the WHEN-LET*.
Execution of WHEN-LET* stops immediately if any INITIAL-FORM evaluates to NIL. If all INITIAL-FORMs evaluate to true, then BODY is executed as an implicit PROGN.
Evaluates exactly one of POSSIBILITIES, chosen at random.
Binds a set of variables to gensyms and evaluates the implicit progn FORMS.
Each element within NAMES is either a symbol SYMBOL or a pair (SYMBOL STRING-DESIGNATOR). Bare symbols are equivalent to the pair (SYMBOL SYMBOL).
Each pair (SYMBOL STRING-DESIGNATOR) specifies that the variable named by SYMBOL should be bound to a symbol constructed using GENSYM with the string designated by STRING-DESIGNATOR being its first argument.
Evaluate BODY with STREAM-NAME to an input stream on the file FILE-NAME. ARGS is sent as is to the call to OPEN except EXTERNAL-FORMAT, which is only sent to WITH-OPEN-FILE when it’s not NIL.
Evaluate BODY with STREAM-NAME to an output stream on the file FILE-NAME. ARGS is sent as is to the call to OPEN except EXTERNAL-FORMAT, which is only sent to WITH-OPEN-FILE when it’s not NIL.
Alias for WITH-GENSYMS.
Evaluates its arguments one at a time, from left to right. If more than one argument evaluates to a true value no further DATUMS are evaluated, and NIL is returned as both primary and secondary value. If exactly one argument evaluates to true, its value is returned as the primary value after all the arguments have been evaluated, and T is returned as the secondary value. If no arguments evaluate to true NIL is returned as primary, and T as secondary value.
assoc-value
(function).
rassoc-value
(function).
Returns a hash table containing the keys and values of the association list ALIST. Hash table is initialized using the HASH-TABLE-INITARGS.
Returns a property list containing the same keys and values as the association list ALIST in the same order.
ASSOC-VALUE is an alist accessor very much like ASSOC, but it can be used with SETF.
Binomial coefficient of N and K, also expressed as N choose K. This is the number of K element combinations given N choises. N must be equal to or greater then K.
Creates a circular list of ELEMENTS.
Returns true if OBJECT is a circular list, NIL otherwise.
Returns true if OBJECT is a circular tree, NIL otherwise.
Clamps the NUMBER into [min, max] range. Returns MIN if NUMBER is lesser then MIN and MAX if NUMBER is greater then MAX, otherwise returns NUMBER.
Returns a function composed of FUNCTION and MORE-FUNCTIONS that applies its arguments to to each in turn, starting from the rightmost of MORE-FUNCTIONS, and then calling the next one with the primary value of the last.
Returns a function that applies each of PREDICATE and MORE-PREDICATE functions in turn to its arguments, returning NIL if any of the predicates returns false, without calling the remaining predicates. If none of the predicates returns false, returns the primary value of the last predicate.
Returns an undisplaced copy of ARRAY, with same fill-pointer and adjustability (if any) as the original, unless overridden by the keyword arguments.
Returns a copy of hash table TABLE, with the same keys and values
as the TABLE. The copy has the same properties as the original, unless
overridden by the keyword arguments.
Before each of the original values is set into the new hash-table, KEY is invoked on the value. As KEY defaults to CL:IDENTITY, a shallow copy is returned by default.
Returns a fresh sequence of TYPE, which has the same elements as SEQUENCE.
Reads data from INPUT and writes it to OUTPUT. Both INPUT and OUTPUT must
be streams, they will be passed to READ-SEQUENCE and WRITE-SEQUENCE and must have
compatible element-types.
Number of K element permutations for a sequence of N objects. K defaults to N
Returns a function that applies ARGUMENTS and the arguments it is called with to FUNCTION.
Just like REMOVE-FROM-PLIST, but this version may destructively modify the provided PLIST.
Just like REMOVE-FROM-PLIST, but this version may destructively modify the
provided PLIST.
The second return value is an alist of the removed items, in unspecified order.
Mirrors cl:array-in-bounds-p, but takes dimensions (list of integers) as its
first argument instead of an array.
(array-in-bounds-p arr ...) == (dim-in-bounds-p (array-dimensions arr) ...)
Returns a function that applies each of PREDICATE and MORE-PREDICATE functions in turn to its arguments, returning the primary value of the first predicate that returns true, without calling the remaining predicates. If none of the predicates returns true, NIL is returned.
Returns true if SEQUENCE is a sequence whose last element is EQL to OBJECT. Returns NIL if the SEQUENCE is not a sequence or is an empty sequence. Signals an error if SEQUENCE is an improper list.
Test whether SEQUENCE ends with SUFFIX. In other words: return true if the last (length SUFFIX) elements of SEQUENCE are equal to SUFFIX.
If THING is a CONS, its CAR is returned. Otherwise THING is returned.
If CONS is a cons, it is returned. Otherwise returns a fresh cons with CONS in the car, and NIL in the cdr.
Returns the function designated by FUNCTION-DESIGNATOR:
if FUNCTION-DESIGNATOR is a function, it is returned, otherwise
it must be a function name and its FDEFINITION is returned.
If LIST is a list, it is returned. Otherwise returns the list designated by LIST.
Returns a symbol with name designated by NAME, accessible in package
designated by PACKAGE. If symbol is not already accessible in PACKAGE, it is
interned there. Returns a secondary value reflecting the status of the symbol
in the package, which matches the secondary return value of INTERN.
Example:
(ensure-symbol :cons :cl) => cl:cons, :external
Returns the element of SEQUENCE that would appear first if the subsequence
bounded by START and END was sorted using PREDICATE and KEY.
EXTREMUM determines the relationship between two elements of SEQUENCE by using
the PREDICATE function. PREDICATE should return true if and only if the first
argument is strictly less than the second one (in some appropriate sense). Two
arguments X and Y are considered to be equal if (FUNCALL PREDICATE X Y)
and (FUNCALL PREDICATE Y X) are both false.
The arguments to the PREDICATE function are computed from elements of SEQUENCE
using the KEY function, if supplied. If KEY is not supplied or is NIL, the
sequence element itself is used.
If SEQUENCE is empty, NIL is returned.
Factorial of non-negative integer N.
Returns T if the argument matches the state of the *FEATURES* list and NIL if it does not. FEATURE-EXPRESSION can be any atom or list acceptable to the reader macros #+ and #-.
Returns the first element of SEQUENCE. Signals a type-error if SEQUENCE is not a sequence, or is an empty sequence.
Sets the first element of SEQUENCE. Signals a type-error if SEQUENCE is
not a sequence, is an empty sequence, or if OBJECT cannot be stored in SEQUENCE.
Traverses the tree in order, collecting non-null leaves into a list.
Constructs a string by applying ARGUMENTS to string designator CONTROL as
if by FORMAT within WITH-STANDARD-IO-SYNTAX, and then creates a symbol named
by that string.
If PACKAGE is NIL, returns an uninterned symbol, if package is T, returns a symbol interned in the current package, and otherwise returns a symbol interned in the package designated by PACKAGE.
Returns two gaussian random double floats as the primary and secondary value,
optionally constrained by MIN and MAX. Gaussian random numbers form a standard
normal distribution around 0.0d0.
Sufficiently positive MIN or negative MAX will cause the algorithm used to take a very long time. If MIN is positive it should be close to zero, and similarly if MAX is negative it should be close to zero.
Returns an association list containing the keys and values of hash table TABLE.
Returns a list containing the keys of hash table TABLE.
Returns a property list containing the keys and values of hash table TABLE.
Returns a list containing the values of hash table TABLE.
Return a list of n numbers, starting from START (with numeric contagion
from STEP applied), each consequtive number being the sum of the previous one
and STEP. START defaults to 0 and STEP to 1.
Examples:
(iota 4) => (0 1 2 3)
(iota 3 :start 1 :step 1.0) => (1.0 2.0 3.0)
(iota 3 :start -1 :step -1/2) => (-1 -3/2 -2)
Returns the last element of SEQUENCE. Signals a type-error if SEQUENCE is not a proper sequence, or is an empty sequence.
Sets the last element of SEQUENCE. Signals a type-error if SEQUENCE is not a proper sequence, is an empty sequence, or if OBJECT cannot be stored in SEQUENCE.
Returns the last element of LIST. Signals a type-error if LIST is not a proper list.
Sets the last element of LIST. Signals a type-error if LIST is not a proper list.
Takes any number of sequences or integers in any order. Returns true iff the length of all the sequences and the integers are equal. Hint: there’s a compiler macro that expands into more efficient code if the first argument is a literal integer.
Returns the result of linear interpolation between A and B, using the interpolation coefficient V.
Creates a circular list of LENGTH with the given INITIAL-ELEMENT.
If NAME is a non-negative integer, calls GENSYM using it. Otherwise NAME must be a string designator, in which case calls GENSYM using the designated string as the argument.
Returns a list of LENGTH gensyms, each generated as if with a call to MAKE-GENSYM, using the second (optional, defaulting to "G") argument.
Interns the string designated by NAME in the KEYWORD package.
Calls FUNCTION with each combination of LENGTH constructable from the elements of the subsequence of SEQUENCE delimited by START and END. START defaults to 0, END to length of SEQUENCE, and LENGTH to the length of the delimited subsequence. (So unless LENGTH is specified there is only a single combination, which has the same elements as the delimited subsequence.) If COPY is true (the default) each combination is freshly allocated. If COPY is false all combinations are EQ to each other, in which case consequences are unspecified if a combination is modified by FUNCTION.
Calls FUNCTION with each derangement of the subsequence of SEQUENCE denoted by the bounding index designators START and END. Derangement is a permutation of the sequence where no element remains in place. SEQUENCE is not modified, but individual derangements are EQ to each other. Consequences are unspecified if calling FUNCTION modifies either the derangement or SEQUENCE.
Calls FUNCTION with N numbers, starting from START (with numeric contagion
from STEP applied), each consequtive number being the sum of the previous one
and STEP. START defaults to 0 and STEP to 1. Returns N.
Examples:
(map-iota #’print 3 :start 1 :step 1.0) => 3
;;; 1.0
;;; 2.0
;;; 3.0
Calls function with each permutation of LENGTH constructable from the subsequence of SEQUENCE delimited by START and END. START defaults to 0, END to length of the sequence, and LENGTH to the length of the delimited subsequence.
Returns a list containing the results of calling FUNCTION with one argument from LIST, and one from each of MORE-LISTS for each combination of arguments. In other words, returns the product of LIST and MORE-LISTS using FUNCTION.
Example:
(map-product ’list ’(1 2) ’(3 4) ’(5 6))
=> ((1 3 5) (1 3 6) (1 4 5) (1 4 6)
(2 3 5) (2 3 6) (2 4 5) (2 4 6))
Like MAPHASH, but calls FUNCTION with each key in the hash table TABLE.
Like MAPHASH, but calls FUNCTION with each value in the hash table TABLE.
Applies FUNCTION to respective element(s) of each LIST, appending all the all the result list to a single list. FUNCTION must return a list.
Returns the mean of SAMPLE. SAMPLE must be a sequence of numbers.
Returns median of SAMPLE. SAMPLE must be a sequence of real numbers.
Returns a function composed of FUNCTION and MORE-FUNCTIONS that applies its arguments to each in turn, starting from the rightmost of MORE-FUNCTIONS, and then calling the next one with all the return values of the last.
Returns a function of one argument, which returns true when its argument is of TYPE.
Parses BODY into (values remaining-forms declarations doc-string). Documentation strings are recognized only if DOCUMENTATION is true. Syntax errors in body are signalled and WHOLE is used in the signal arguments when given.
Parses an ordinary lambda-list, returning as multiple values:
1. Required parameters.
2. Optional parameter specifications, normalized into form:
(name init suppliedp)
3. Name of the rest parameter, or NIL.
4. Keyword parameter specifications, normalized into form:
((keyword-name name) init suppliedp)
5. Boolean indicating &ALLOW-OTHER-KEYS presence.
6. &AUX parameter specifications, normalized into form
(name init).
7. Existence of &KEY in the lambda-list.
Signals a PROGRAM-ERROR is the lambda-list is malformed.
Returns an association list containing the same keys and values as the property list PLIST in the same order.
Returns a hash table containing the keys and values of the property list PLIST. Hash table is initialized using the HASH-TABLE-INITARGS.
Returns length of LIST, signalling an error if it is not a proper list.
Returns true if OBJECT is a proper list.
Returns a random element from SEQUENCE bounded by START and END. Signals an error if the SEQUENCE is not a proper non-empty sequence, or if END and START are not proper bounding index designators for SEQUENCE.
RASSOC-VALUE is an alist accessor very much like RASSOC, but it can be used with SETF.
Returns a function that applies the arguments it is called with and ARGUMENTS to FUNCTION.
Read PATHNAME into a freshly allocated (unsigned-byte 8) vector.
Return the contents of the file denoted by PATHNAME as a fresh string.
The EXTERNAL-FORMAT parameter will be passed directly to WITH-OPEN-FILE unless it’s NIL, which means the system default.
Return "content" of STREAM as freshly allocated (unsigned-byte 8) vector.
Return the "content" of STREAM as a fresh string.
Returns a property-list with same keys and values as PLIST, except that keys in the list designated by KEYS and values corresponding to them are removed. The returned property-list may share structure with the PLIST, but PLIST is not destructively modified. Keys are compared using EQ.
Signals an error for a missing argument of NAME. Intended for use as an initialization form for structure and class-slots, and a default value for required keyword arguments.
The inverse function to row-major-index. Given a set of dimensions and a row-major index, produce the list of indices <subscripts> such that (row-major-index dimensions sucscripts) = index
Returns a sequence of the same type as SEQUENCE, with the elements of
SEQUENCE rotated by N: N elements are moved from the end of the sequence to
the front if N is positive, and -N elements moved from the front to the end if
N is negative. SEQUENCE must be a proper sequence. N must be an integer,
defaulting to 1.
If absolute value of N is greater then the length of the sequence, the results
are identical to calling ROTATE with
(* (signum n) (mod n (length sequence))).
Note: the original sequence may be destructively altered, and result sequence may share structure with it.
Mirrors cl:array-row-major-index, but takes dimensions (list of integers)
as its first argument instead of an array.
Signals an error if lengths of dimensions and subscripts are not equal
(array-row-major-index arr ...) == (row-major-index (array-dimensions arr) ...)
Return true if SEQUENCE is a sequence of length LENGTH. Signals an error if SEQUENCE is not a sequence. Returns FALSE for circular lists.
Returns true if every element of LIST1 matches some element of LIST2 and every element of LIST2 matches some element of LIST1. Otherwise returns false.
Returns true if OBJECT is a list that denotes a set, NIL otherwise. A list denotes a set if each element of the list is unique under KEY and TEST.
Returns a random permutation of SEQUENCE bounded by START and END.
Original sequence may be destructively modified.
Signals an error if SEQUENCE is not a proper sequence.
Standard deviation of SAMPLE. Returns the biased standard deviation if BIASED is true (the default), and the square root of the unbiased estimator for variance if BIASED is false (which is not the same as the unbiased estimator for standard deviation). SAMPLE must be a sequence of numbers.
Returns true if SEQUENCE is a sequence whose first element is EQL to OBJECT. Returns NIL if the SEQUENCE is not a sequence or is an empty sequence.
Test whether the first elements of SEQUENCE are the same (as per TEST) as the elements of PREFIX.
If RETURN-SUFFIX is T the function returns, as a second value, a
sub-sequence or displaced array pointing to the sequence after PREFIX.
Subfactorial of the non-negative integer N.
Like SUBSEQ, but limits END to the length.
Concatenate together the names of some strings and symbols, producing a symbol in the current package.
Returns a primary value of T if TYPE1 and TYPE2 are the same type,
and a secondary value that is true is the type equality could be reliably
determined: primary value of NIL and secondary value of T indicates that the
types are not equivalent.
Variance of SAMPLE. Returns the biased variance if BIASED is true (the default), and the unbiased estimator of variance if BIASED is false. SAMPLE must be a sequence of numbers.
Write BYTES to PATHNAME.
Write STRING to PATHNAME.
The EXTERNAL-FORMAT parameter will be passed directly to WITH-OPEN-FILE unless it’s NIL, which means the system default.
Returns T if SEQUENCE is an empty sequence and NIL otherwise. Signals an error if SEQUENCE is not a sequence.
emptyp
.
parse-error
.
simple-error
.
program-error
.
simple-error
.
simple-reader-error
.
simple-warning
.
style-warning
.
Type designator for an index into array of LENGTH: an integer between 0 (inclusive) and LENGTH (exclusive). LENGTH defaults to one less than ARRAY-DIMENSION-LIMIT.
Type designator for a dimension of an array of LENGTH: an integer between 0 (inclusive) and LENGTH (inclusive). LENGTH defaults to one less than ARRAY-DIMENSION-LIMIT.
Type designator for circular lists. Implemented as a SATISFIES type, so not recommended for performance intensive use. Main usefullness as the expected-type designator of a TYPE-ERROR.
Type specifier denoting the double-float range from -inf to 0.0d0.
Type specifier denoting the fixnum range from MOST-NEGATIVE-FIXNUM to -1.
Type specifier denoting the float range from -inf to 0.0.
Type specifier denoting the integer range from -inf to -1.
Type specifier denoting the long-float range from -inf to 0.0d0.
Type specifier denoting the rational range from -inf to 0.
Type specifier denoting the real range from -inf to 0.
Type specifier denoting the short-float range from -inf to 0.0.
Type specifier denoting the single-float range from -inf to 0.0.
Type specifier denoting the double-float range from 0.0d0 to +inf.
Type specifier denoting the fixnum range from 0 to MOST-POSITIVE-FIXNUM.
Type specifier denoting the float range from 0.0 to +inf.
Type specifier denoting the integer range from 0 to +inf.
Type specifier denoting the long-float range from 0.0d0 to +inf.
Type specifier denoting the rational range from 0 to +inf.
Type specifier denoting the real range from 0 to +inf.
Type specifier denoting the short-float range from 0.0 to +inf.
Type specifier denoting the single-float range from 0.0 to +inf.
Type specifier denoting the double-float range from -inf to 0.0d0.
Type specifier denoting the fixnum range from MOST-NEGATIVE-FIXNUM to 0.
Type specifier denoting the float range from -inf to 0.0.
Type specifier denoting the integer range from -inf to 0.
Type specifier denoting the long-float range from -inf to 0.0d0.
Type specifier denoting the rational range from -inf to 0.
Type specifier denoting the real range from -inf to 0.
Type specifier denoting the short-float range from -inf to 0.0.
Type specifier denoting the single-float range from -inf to 0.0.
Type specifier denoting the double-float range from 0.0d0 to +inf.
Type specifier denoting the fixnum range from 1 to MOST-POSITIVE-FIXNUM.
Type specifier denoting the float range from 0.0 to +inf.
Type specifier denoting the integer range from 1 to +inf.
Type specifier denoting the long-float range from 0.0d0 to +inf.
Type specifier denoting the rational range from 0 to +inf.
Type specifier denoting the real range from 0 to +inf.
Type specifier denoting the short-float range from 0.0 to +inf.
Type specifier denoting the single-float range from 0.0 to +inf.
Type designator for proper lists. Implemented as a SATISFIES type, hence not recommended for performance intensive use. Main usefullness as a type designator of the expected type in a TYPE-ERROR.
Type designator for proper sequences, that is proper lists and sequences that are not lists.
A string designator type. A string designator is either a string, a symbol, or a character.
Just like WITH-OPEN-FILE, but NIL values in the keyword arguments mean to use the default value specified for OPEN.
Useful for macros that want to mimic the functional interface for functions like #’eq and ’eq.
Iterative implementation for ‘thread-iter’.
The THREAD-FIRST-P decides where to thread the FORMS, accumulating in ACC.
Alias of REMOVE-FROM-PLIST for backward compatibility.
Jump to: | %
(
A B C D E F G H I L M N O P R S T U V W X |
---|
Jump to: | %
(
A B C D E F G H I L M N O P R S T U V W X |
---|
Jump to: | +
C |
---|
Jump to: | +
C |
---|
Jump to: | A B C D F H I L M N P S T |
---|
Jump to: | A B C D F H I L M N P S T |
---|