This is the arc-compat Reference Manual, version 0.9.92, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 04:16:46 2024 GMT+0.
arc-compat/arc-compat.asd
arc-compat/package.lisp
arc-compat/type.lisp
arc-compat/utils.lisp
arc-compat/ac.lisp
arc-compat/base.lisp
arc-compat/boolean.lisp
arc-compat/assignment.lisp
arc-compat/macro.lisp
arc-compat/variables.lisp
arc-compat/anaphoric-op.lisp
arc-compat/predicates.lisp
arc-compat/io.lisp
arc-compat/error.lisp
arc-compat/iteration.lisp
arc-compat/math.lisp
arc-compat/table.lisp
arc-compat/string.lisp
arc-compat/list.lisp
arc-compat/test-after.lisp
arc-compat/reader.lisp
arc-compat/readtable.lisp
arc-compat/readtable-setup.lisp
arc-compat/ext.lisp
arc-compat/arc.arc.lisp
arc-compat/string.arc.lisp
arc-compat/pprint.arc.lisp
arc-compat/html.arc.lisp
The main system appears first, followed by any subsystem dependency.
arc-compat
Arc compatible package for CL
CHIBA Masaomi <chiba.masaomi@gmail.com>
CHIBA Masaomi <chiba.masaomi@gmail.com>
0.9.92
fiveam
(system).
named-readtables
(system).
bordeaux-threads
(system).
sb-introspect
(system).
ironclad
(system).
cl-fad
(system).
babel
(system).
package.lisp
(file).
type.lisp
(file).
utils.lisp
(file).
ac.lisp
(file).
base.lisp
(file).
boolean.lisp
(file).
assignment.lisp
(file).
macro.lisp
(file).
variables.lisp
(file).
anaphoric-op.lisp
(file).
predicates.lisp
(file).
io.lisp
(file).
error.lisp
(file).
iteration.lisp
(file).
math.lisp
(file).
table.lisp
(file).
string.lisp
(file).
list.lisp
(file).
test-after.lisp
(file).
reader.lisp
(file).
readtable.lisp
(file).
readtable-setup.lisp
(file).
ext.lisp
(file).
arc.arc.lisp
(file).
string.arc.lisp
(file).
pprint.arc.lisp
(file).
html.arc.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
arc-compat/arc-compat.asd
arc-compat/package.lisp
arc-compat/type.lisp
arc-compat/utils.lisp
arc-compat/ac.lisp
arc-compat/base.lisp
arc-compat/boolean.lisp
arc-compat/assignment.lisp
arc-compat/macro.lisp
arc-compat/variables.lisp
arc-compat/anaphoric-op.lisp
arc-compat/predicates.lisp
arc-compat/io.lisp
arc-compat/error.lisp
arc-compat/iteration.lisp
arc-compat/math.lisp
arc-compat/table.lisp
arc-compat/string.lisp
arc-compat/list.lisp
arc-compat/test-after.lisp
arc-compat/reader.lisp
arc-compat/readtable.lisp
arc-compat/readtable-setup.lisp
arc-compat/ext.lisp
arc-compat/arc.arc.lisp
arc-compat/string.arc.lisp
arc-compat/pprint.arc.lisp
arc-compat/html.arc.lisp
arc-compat/type.lisp
package.lisp
(file).
arc-compat
(system).
xdeftype
(macro).
arc-compat/utils.lisp
type.lisp
(file).
arc-compat
(system).
caar
(function).
cadr
(function).
(setf cadr)
(function).
cddr
(function).
list
(function).
ref
(generic function).
(setf ref)
(generic function).
sref
(generic function).
w/obcall
(macro).
+internal-flatten
(function).
==
(macro).
>_<
(macro).
arc-ll-to-cl-ll
(function).
defalias
(macro).
null-lexenv-p
(function).
reduce-&optional
(function).
set==
(function).
to-proper-lambda-list
(function).
tst
(macro).
w/tco
(macro).
arc-compat/ac.lisp
utils.lisp
(file).
arc-compat
(system).
+
(compiler macro).
+
(function).
atomic-invoke
(function).
break-thread
(function).
call-w/stdin
(function).
call-w/stdout
(function).
ccc
(macro).
coerce
(function).
current-gc-milliseconds
(function).
dead
(function).
details
(function).
dir
(function).
dir-exists
(function).
err
(function).
file-exists
(function).
flushout
(function).
force-close
(function).
infile
(function).
instring
(function).
is
(function).
kill-thread
(function).
len
(function).
maptable
(function).
memory
(function).
msec
(function).
mvfile
(function).
new-thread
(function).
newstring
(function).
on-err
(function).
outfile
(function).
outstring
(function).
peekc
(function).
pipe-from
(function).
protect
(function).
readb
(function).
readc
(function).
rep
(function).
rmfile
(function).
scar
(function).
scdr
(function).
seconds
(function).
sig
(function).
sread
(function).
stderr
(function).
stdin
(function).
stdout
(function).
system
(function).
table
(function).
timedate
(function).
trunc
(function).
type
(function).
write
(function).
writeb
(function).
ac-niltree
(function).
ar-the-lock
(special variable).
get-time-of-day
(function).
split-by-whitec
(function).
wrapnil
(function).
x+y
(function).
xdef
(macro).
arc-compat/base.lisp
ac.lisp
(file).
arc-compat
(system).
%pair
(function).
_-to-gensym
(function).
arc-compat/boolean.lisp
base.lisp
(file).
arc-compat
(system).
nor
(macro).
arc-compat/assignment.lisp
boolean.lisp
(file).
arc-compat
(system).
wipe
(macro).
arc-compat/macro.lisp
assignment.lisp
(file).
arc-compat
(system).
w/uniq
(macro).
arc-compat/variables.lisp
macro.lisp
(file).
arc-compat
(system).
arc-compat/anaphoric-op.lisp
variables.lisp
(file).
arc-compat
(system).
check
(macro).
arc-compat/predicates.lisp
anaphoric-op.lisp
(file).
arc-compat
(system).
.bound-test-ignore.
(special variable).
x<y
(compiler macro).
x<y
(function).
x>y
(function).
arc-compat/io.lisp
predicates.lisp
(file).
arc-compat
(system).
after
(macro).
fromstring
(macro).
pr
(function).
prn
(function).
tostring
(macro).
w/infile
(macro).
w/instring
(macro).
w/outfile
(macro).
w/outstring
(macro).
w/stdin
(macro).
w/stdout
(macro).
w/socket
(macro).
arc-compat/error.lisp
io.lisp
(file).
arc-compat
(system).
arc-compat/iteration.lisp
error.lisp
(file).
arc-compat
(system).
arc-compat/math.lisp
iteration.lisp
(file).
arc-compat
(system).
nearest
(function).
arc-compat/table.lisp
math.lisp
(file).
arc-compat
(system).
arc-compat/string.lisp
table.lisp
(file).
arc-compat
(system).
arc-compat/list.lisp
string.lisp
(file).
arc-compat
(system).
adjoin
(function).
before
(function).
bestn
(function).
carif
(function).
caris
(function).
commonest
(function).
compare
(function).
consif
(function).
conswhen
(function).
count
(function).
counts
(function).
cut
(function).
dedup
(function).
find
(function).
firstn
(function).
firstn-that
(function).
flat
(function).
insert-sorted
(function).
insort
(macro).
insortnew
(macro).
intersperse
(function).
join
(function).
keep
(function).
last
(function).
len<
(function).
len>
(function).
map1
(function).
mappend
(function).
mem
(function).
merge
(function).
mergesort
(function).
mismatch
(function).
most
(function).
n-of
(macro).
nthcdr
(function).
only
(function).
pair
(function).
pos
(function).
rand-choice
(macro).
random-elt
(function).
range
(function).
reclist
(function).
reduce
(function).
reinsert-sorted
(function).
rem
(function).
rreduce
(function).
single
(function).
sort
(function).
split
(function).
summing
(macro).
trues
(function).
tuples
(function).
union
(function).
arc-compat/test-after.lisp
list.lisp
(file).
arc-compat
(system).
arc-compat/reader.lisp
test-after.lisp
(file).
arc-compat
(system).
ac-tokens
(function).
build-sexpr
(function).
chars->value
(function).
compose-marker
(constant).
compose-marker2
(constant).
compose-reader-macro-reader
(function).
decompose
(function).
expand-compose
(function).
expand-sexpr
(function).
expand-ssyntax
(function).
has-ssyntax-char?
(function).
insym?
(function).
make-compose-form
(function).
read-symbol
(function).
read-tolerant-preserving-whitespace
(function).
recompose-symbols
(function).
set-arc-lambda
(function).
ssyntax?
(function).
symbol->chars
(function).
arc-compat/readtable.lisp
reader.lisp
(file).
arc-compat
(system).
arc-compat/readtable-setup.lisp
readtable.lisp
(file).
arc-compat
(system).
arc-compat/ext.lisp
readtable-setup.lisp
(file).
arc-compat
(system).
ignore-vars
(function).
string-equal-in
(macro).
arc-compat/arc.arc.lisp
ext.lisp
(file).
arc-compat
(system).
alref
(function).
assoc
(function).
atlet
(macro).
atomic
(macro).
atwith
(macro).
atwiths
(macro).
cache
(function).
catch
(macro).
date
(function).
defmemo
(macro).
defset
(macro).
deftem
(macro).
deq
(function).
enq
(function).
enq-limit
(function).
ensure-dir
(function).
ero
(function).
errsafe
(macro).
expand-metafn-call
(function).
fill-table
(function).
get
(function).
idfn
(function).
inst
(function).
int
(function).
jtime
(macro).
keys
(function).
load-table
(function).
load-tables
(function).
loop
(macro).
memo
(function).
memtable
(function).
metafn
(function).
noisy-each
(macro).
ontree
(function).
point
(macro).
prall
(function).
prf
(macro).
prs
(function).
qlen
(function).
qlist
(function).
queue
(function).
read
(function).
read-table
(function).
readall
(function).
readfile
(function).
readfile1
(function).
readline
(function).
readstring1
(function).
safe-load-table
(function).
saferead
(function).
save-table
(function).
setter
(special variable).
since
(function).
ssyntax
(function).
sum
(function).
swap
(macro).
temload
(function).
temloadall
(function).
templatize
(function).
temread
(function).
thread
(macro).
time
(macro).
time10
(macro).
tree-subst
(function).
treewise
(function).
vals
(function).
w/appendfile
(macro).
whiler
(macro).
write-table
(function).
writefile
(function).
addtem
(macro).
defhook
(macro).
disktable
(macro).
diskvar
(macro).
fromdisk
(macro).
fsafeset
(macro).
hook
(function).
hooks*
(special variable).
loop-tester
(function).
out
(macro).
parse-format
(function).
savers*
(special variable).
templates*
(special variable).
todisk
(macro).
arc-compat/string.arc.lisp
arc.arc.lisp
(file).
arc-compat
(system).
begins
(function).
blank
(function).
endmatch
(macro).
findsubseq
(function).
halve
(function).
lines
(function).
litmatch
(macro).
multisubst
(function).
num
(function).
plural
(function).
pluralize
(function).
positions
(function).
posmatch
(function).
slices
(function).
tokens
(function).
trim
(function).
urldecode
(function).
urlencode
(function).
nonblank
(function).
arc-compat/pprint.arc.lisp
string.arc.lisp
(file).
arc-compat
(system).
arc-compat/html.arc.lisp
pprint.arc.lisp
(file).
arc-compat
(system).
blank-url
(function).
Packages are listed by definition order.
arc-compat.internal
arc-compat
.
common-lisp
.
editor-hints.named-readtables
.
%pair
(function).
+internal-flatten
(function).
.bar*.
(special variable).
.bound-test-ignore.
(special variable).
==
(macro).
>_<
(macro).
_-to-gensym
(function).
ac-niltree
(function).
ac-tokens
(function).
addtem
(macro).
ar-the-lock
(special variable).
arc-ll-to-cl-ll
(function).
bar*
(symbol macro).
bodops*
(special variable).
build-sexpr
(function).
chars->value
(function).
check
(macro).
compose-marker
(constant).
compose-marker2
(constant).
compose-reader-macro-reader
(function).
decompose
(function).
defalias
(macro).
defhook
(macro).
digit
(function).
disktable
(macro).
diskvar
(macro).
expand-compose
(function).
expand-sexpr
(function).
expand-ssyntax
(function).
fromdisk
(macro).
fsafeset
(macro).
get-time-of-day
(function).
has-ssyntax-char?
(function).
hook
(function).
hooks*
(special variable).
ignore-vars
(function).
insym?
(function).
letter
(function).
loop-tester
(function).
lpar
(function).
make-compose-form
(function).
nearest
(function).
nonblank
(function).
null-lexenv-p
(function).
oneline*
(special variable).
out
(macro).
parse-format
(function).
read-symbol
(function).
read-tolerant-preserving-whitespace
(function).
recompose-symbols
(function).
reduce-&optional
(function).
rpar
(function).
savers*
(special variable).
set-arc-lambda
(function).
set==
(function).
split-by-whitec
(function).
ssyntax?
(function).
string-equal-in
(macro).
symbol->chars
(function).
templates*
(special variable).
to-proper-lambda-list
(function).
todisk
(macro).
tst
(macro).
w/bars
(macro).
w/socket
(macro).
w/tco
(macro).
wipe
(macro).
wrapnil
(function).
x+y
(function).
x<y
(compiler macro).
x<y
(function).
x>y
(function).
xdef
(macro).
xdeftype
(macro).
arc-compat
arc
*let
(macro).
+
(compiler macro).
+
(function).
++
(macro).
--
(macro).
<
(compiler macro).
<
(function).
<=
(function).
=
(macro).
=*
(macro).
>
(function).
>=
(function).
aand
(macro).
accum
(macro).
acons
(function).
adjoin
(function).
afn
(macro).
after
(macro).
aif
(macro).
alist
(function).
all
(function).
alphadig
(function).
alref
(function).
and
(macro).
andf
(function).
apply
(function).
assert
(macro).
assoc
(function).
atend
(function).
atlet
(macro).
atom
(function).
atomic
(macro).
atomic-invoke
(function).
atwith
(macro).
atwiths
(macro).
avg
(function).
awhen
(macro).
before
(function).
begins
(function).
best
(function).
bestn
(function).
blank
(function).
blank-url
(function).
bound
(function).
break-thread
(function).
caar
(function).
cache
(function).
cadr
(function).
(setf cadr)
(function).
call-w/stdin
(function).
call-w/stdout
(function).
carif
(function).
caris
(function).
case
(macro).
caselet
(macro).
catch
(macro).
ccc
(macro).
cddr
(function).
char
(type).
coerce
(function).
commonest
(function).
compare
(function).
complement
(function).
compose
(macro).
cons
(function).
cons
(type).
consif
(function).
conswhen
(function).
copy
(macro).
cos
(function).
count
(function).
counts
(function).
current-gc-milliseconds
(function).
current-process-milliseconds
(function).
cut
(function).
date
(function).
dead
(function).
dedup
(function).
def
(macro).
defmemo
(macro).
defset
(macro).
deftem
(macro).
deq
(function).
details
(function).
dir
(function).
dir-exists
(function).
disp
(function).
do
(macro).
do1
(macro).
dotted
(function).
downcase
(function).
drain
(macro).
each
(macro).
ellipsize
(function).
empty
(function).
endmatch
(macro).
enq
(function).
enq-limit
(function).
ensure-dir
(function).
ero
(function).
err
(function).
errsafe
(macro).
even
(function).
exact
(function).
exception
(type).
expand-metafn-call
(function).
file-exists
(function).
fill-table
(function).
find
(function).
findsubseq
(function).
firstn
(function).
firstn-that
(function).
flat
(function).
flushout
(function).
fn
(macro).
fn
(type).
for
(macro).
force-close
(function).
forlen
(macro).
fromstring
(macro).
get
(function).
halve
(function).
headmatch
(function).
idfn
(function).
if
(macro).
iflet
(macro).
in
(macro).
infile
(function).
input
(type).
insert-sorted
(function).
inside
(function).
insort
(macro).
insortnew
(macro).
inst
(function).
instring
(function).
int
(function).
int
(type).
intersperse
(function).
is
(function).
isa
(function).
isnt
(function).
iso
(function).
join
(function).
jtime
(macro).
keep
(function).
keys
(function).
kill-thread
(function).
last
(function).
len
(function).
len<
(function).
len>
(function).
let
(macro).
leto
(macro).
lines
(function).
list
(function).
listtab
(function).
litmatch
(macro).
load-table
(function).
load-tables
(function).
log
(function).
loop
(macro).
mac
(macro).
macex
(function).
macex1
(function).
map
(function).
map1
(function).
mappend
(function).
maptable
(function).
max
(function).
median
(function).
mem
(function).
memo
(function).
memory
(function).
memtable
(function).
merge
(function).
mergesort
(function).
metafn
(function).
min
(function).
mismatch
(function).
most
(function).
msec
(function).
multiple
(function).
multisubst
(function).
mvfile
(function).
n-of
(macro).
new-thread
(function).
newstring
(function).
no
(function).
noisy-each
(macro).
nonwhite
(function).
nor
(macro).
nthcdr
(function).
num
(function).
num
(type).
number
(function).
obj
(macro).
odd
(function).
on
(macro).
on-err
(function).
only
(function).
ontable
(macro).
ontree
(function).
or
(macro).
orf
(function).
outfile
(function).
output
(type).
outstring
(function).
pair
(function).
peekc
(function).
pipe-from
(function).
plural
(function).
pluralize
(function).
point
(macro).
pos
(function).
positions
(function).
positive
(function).
posmatch
(function).
ppr
(function).
ppr-call
(function).
ppr-progn
(function).
pprest
(function).
pr
(function).
prall
(function).
prf
(macro).
prn
(function).
protect
(function).
prs
(function).
pull
(macro).
punc
(function).
pushnew
(macro).
qlen
(function).
qlist
(function).
queue
(function).
quit
(function).
rand
(function).
rand-choice
(macro).
rand-string
(function).
random-elt
(function).
range
(function).
read
(function).
read-table
(function).
readall
(function).
readb
(function).
readc
(function).
readfile
(function).
readfile1
(function).
readline
(function).
readstring1
(function).
reclist
(function).
recstring
(function).
reduce
(function).
ref
(generic function).
(setf ref)
(generic function).
reinsert-sorted
(function).
rem
(function).
rep
(function).
repeat
(macro).
rev
(function).
rfn
(macro).
rmfile
(function).
rotate
(macro).
roundup
(function).
rreduce
(function).
safe-load-table
(function).
saferead
(function).
safeset
(macro).
save-table
(function).
scar
(function).
scdr
(function).
seconds
(function).
set
(macro).
setter
(special variable).
sig
(function).
sin
(function).
since
(function).
single
(function).
sleep
(function).
slices
(function).
sort
(function).
sp
(function).
split
(function).
sread
(function).
sref
(generic function).
ssyntax
(function).
stderr
(function).
stdin
(function).
stdout
(function).
string
(function).
string
(type).
subst
(function).
sum
(function).
summing
(macro).
swap
(macro).
sym
(function).
sym
(type).
system
(function).
table
(function).
table
(type).
tablist
(function).
tan
(function).
temload
(function).
temloadall
(function).
templatize
(function).
temread
(function).
testify
(function).
thread
(macro).
time
(macro).
time10
(macro).
timedate
(function).
to-nearest
(function).
tokens
(function).
tostring
(macro).
trav
(macro).
tree-subst
(function).
treewise
(function).
trim
(function).
trues
(function).
trunc
(function).
tuples
(function).
type
(function).
union
(function).
uniq
(function).
unless
(macro).
until
(macro).
upcase
(function).
urldecode
(function).
urlencode
(function).
vals
(function).
w/appendfile
(macro).
w/infile
(macro).
w/instring
(macro).
w/obcall
(macro).
w/outfile
(macro).
w/outstring
(macro).
w/stdin
(macro).
w/stdout
(macro).
w/table
(macro).
w/uniq
(macro).
when
(macro).
whenlet
(macro).
while
(macro).
whiler
(macro).
whilet
(macro).
whitec
(function).
with
(macro).
witho
(macro).
withos
(macro).
withs
(macro).
write
(function).
write-spaced
(function).
write-table
(function).
writeb
(function).
writec
(function).
writefile
(function).
zap
(macro).
Definitions are sorted by export status, category, package, and then by lexicographic order.
multiple-value-bind
.
Increments the value at place by i. The default increment is 1.
incf
.
Decrements the value at place by i. The default decrement is 1.
decf
.
Sets each place to the associated expression. If the last place has no associated expression, it is set to nil.
Define a special variable at top level. Declare the variable
SPECIAL and, optionally, initialize it. If the variable already has a
value, the old value is not clobbered. The third argument is an optional
documentation string for the variable.
defvar
.
Anaphoric and. Returns the last argument if all arguments are true, otherwise returns nil. Inside each argument the anaphoric variable it refers to the value of the previous argument. Like and, lazy evaluation is used, so evaluation stops after encountering a false argument.
Executes body. Inside body, each time accfn is called, its argument is pushed on a list that becomes the return value. Note that the list is in reverse order.
Creates an anaphoric function, which can be called recursively with the name self. This allows a recursive function to be created without assigning it a name.
Sets the places to t. Note that this is unrelated to asserting that a condition holds.
Anaphoric when: if the expr is true, the body is executed. Within the body, the variable it refers back to the value of expr.
Copies x, updating entries corresponding to the args.. The input must be of type sym, cons, string, or table. For a sym, additional arguments are not permitted. For a list, the keys are numeric indices into the list, and the corresponding entries are replaced with the values. For a string, the keys are indices into the string and the values must be characters. For a table, the keys and values add or update entries in the table. Original object x is unmodified.
Saves the first expression and returns it after executing the body.
prog1
.
Repeatedly executes expr until it returns eof (default nil). A list of the expr values is returned.
Executes body repeatedly with var assigned the values from init to max, incremented by 1 each time. For the last iteration, v will be >= max. If max <= init-1, body will not be executed.
Iterates over a sequence (list, string, or table) seq. var takes the values from 0 to length-1.
This predicate returns true if x is in the choices. Note that each choice is a separate argument.
Insert elt into previously-sorted list, updating list.
Insert elt into previously-sorted list if it is not present, updating list.
The let statement sets the variable var to the value within the scope of the body. Outside the let statement, any existing value of var is unaffected. Let is like with but with a single variable binding.
Creates a macro.
Evaluates expr n times and returns a list of the results.
The nor boolean operator tests if all of the arguments are false. It returns t if all arguments are false, and nil if any arguments are true. It performs ’short-circuit’ evaluation, and doesn’t evaluate arguments that follow a true one.
Creates a table with the specified key/value pairs. (The table can be considered an object with the keys as field names.)
Iterates the same as each, except the variable index is assigned a count, starting at 0. For tables, var is assigned nil each iteration, so ontable is probably more useful.
Remove elements satisfying test from the list starting at place.
Takes an object and a location holding a list. If the object is already in the list, does nothing; otherwise, conses the object onto the list. Keyword arguments are accepted as per the ADJOIN function.
pushnew
.
Randomly choose one of the expressions.
Creates a function with the given name. The name is only inside the scope of the rfn macro. This allows recursive functions to be created without polluting the wider scope.
Assigns place2 to place1, assigns place3 to place2, and so on, assigning place1 to the last place.
rotatef
.
Sets var to value. This is similar to =, except it prints a warning if var is already defined.
set is used to set a variable to an expression.
Sums the number of times sumfn is called with a true argument in body. The sum is returned. The sumfn argument specifies the name under which the summing function is available to the body.
Recursive traversal. Applies each function in sequence to obj, if obj is not nil. The function can recursively call itself with a new obj with (self obj).
Executes body repeatedly until test is true. The test is evaluated before each execution of body. until is the opposite of while.
Assigns a unique symbol to each name in names and executes body. names can either be a single symbol or a list of symbols.
Executes body repeatedly while test is true. The test is evaluated before each execution of body.
Executes body repeatedly while test is true. The value of test
is assigned to var on each iteration, for use in the
body. Typically test obtains a new value from some source, and
whilet is used to loop until nil is obtained.
Creates a new variable binding and executes the body. The values are computed before any of the assignments are done (like Scheme’s let, rather than let*). If the last variable doesn’t have a value, it is assigned nil.
Creates a new variable binding and executes the body. The values are computed sequentially (like Scheme’s let*, rather than let). If the last variable doesn’t have a value, it is assigned nil.
Less than comparison. Applies to numbers, strings, symbols, or chars.
If multiple arguments are given, the sequence must be monotonically increasing.
The less-than-or-equal predicate. It can take an arbitrary number of arguments. There is no short-circuiting; all arguments are evaluated. Arguments must be comparable. Arguments can be numbers, characters or strings, but all arguments must be of the same type.
Greater than comparison. Applies to numbers, strings, symbols, or chars.
If multiple arguments are given, the sequence must be monotonically decreasing.
The greater-than-or-equal predicate. It can take an arbitrary number of arguments. There is no short-circuiting; all arguments are evaluated. Arguments must be comparable. Arguments can be numbers, characters or strings, but all arguments must be of the same type.
Tests if x is of type ’cons, i.e. if x is a non-nil list.
Cons elt onto list unless (test elt y) is true for some y in list. By default, test is iso, so elt will be joined if it is not present in list.
Tests if x is a list, i.e. nil or of type ’cons. The alist and acons predicates are the same except for nil, which is a list but an atom, not acons.
Tests if all elements of seq satisfies test. The sequence is either a list or a string. The test is a predicate or value, which is wrapped in testify.
every
.
Predicate to test if a character is alphabetic or a digit.
alphanumericp
.
Creates a function on one variable that tests if all of the original functions are true when applied to the variable.
Apply FUNCTION to a list of arguments produced by evaluating ARGUMENTS in the manner of LIST*. That is, a list is made of the values of all but the last argument, appended to the value of the last argument, which must be a list.
apply
.
Tests if index i is at the end or beyond in sequence or string s.
Return true if OBJECT is an ATOM, and NIL otherwise.
atom
.
Computes the average of a list of numbers.
Tests if t1 is true before t2 in seq. seq is either a list or string.
The tests are either objects or predicate functions. If start is given, search
starts with the specified element.
Returns the ’best’ element of list as determined by function compare.
Returns the first n elements of list when sorted according to comparison function compare.
Tests is a symbol is bound.
boundp
.
Returns (car x) if x is a list, and returns x otherwise. This provides a ’safe’ way to return the first element of something that may or may not be a list.
Tests if x is a list and (car x) is val.
Returns the element of list occurring most frequently, along with its count.
Creates a procedure on two values that applies scorer to each value, and then applies comparer to the two scores.
Return a new function that returns T whenever FUNCTION returns NIL and NIL whenever FUNCTION returns non-NIL.
complement
.
Return a list with SE1 as the CAR and SE2 as the CDR.
cons
.
Cons x onto list if x is not nil.
Cons x and y if (f x) is true. Otherwise returns y.
Return the cosine of NUMBER.
cos
.
Counts the number of elements of seq that satisfy test. test is an object or predicate. For a table, the elements are the values.
Counts how many times each element of list occurs. The results are returned as a table mapping from the element to the count. If a table is passed in, it will be updated.
Return the run time used by the process in the internal time format. (See INTERNAL-TIME-UNITS-PER-SECOND.) This is useful for finding CPU usage. Includes both "system" and "user" time.
get-internal-run-time
.
Returns subsequence of seq from start to end. If end is not specified, the remainder of seq is used. The seq can be a list or string.
Returns contents of seq without duplicates. For a string, returns a list of characters. For a table, returns a list of values.
Output an aesthetic but not necessarily READable printed representation of OBJECT on the specified STREAM.
princ
.
Returns true if x is a dotted list.
Converts a string, character, or symbol to lower case. This only converts ASCII; Unicode is unchanged.
If str is longer than the limit (default 80), truncate it and append ellipses (’...’).
Tests if seq is empty. Works on lists, strings, and tables.
Tests if n is even. Argument n must be an integer.
Tests if the value is an exact integer.
integerp
.
Finds and returns the first element of seq that satisfies test (object or predicate). seq can be a list or string.
Returns first ’n’ elements of list.
Returns the first n elements of list for which predicate f is true.
Flattens list into a list of atoms. Any nils are removed. If stringstoo is true, empty strings are removed, but flat will fail if the list contains any non-empty strings.
Creates a new list with elt inserted into the sorted list list. The original list must be sorted according to the comparison function. The original list is unmodified.
get-output-stream-string
.
Inserts x between elements of list. If list has fewer than 2 elements, there is no effect.
Tests equality with eqv?
Tests if x has type y.
typep
.
Tests inequality; opposite of is.
Compares x and y. If they are lists, they are compared element-by-element.
Joins lists into one list.
Keeps elements from seq that satisfy test. test is either a function or an object. seq is either a list or string.
Terminates the specified thread immediately.
Returns the last element of list.
Computes the length of seq.
Tests if length of seq is less than n.
Tests if length of seq is greater than n.
Return the logarithm of NUMBER in the base BASE, which defaults to e.
log
.
Expands a macro.
macroexpand
.
Expands a macro to one level.
macroexpand-1
.
Applies f to the elements of the sequences, taking the first from each,
the second from each, and so on. If there are n sequences, f must be a function
accepting n arguments. The sequences can be lists or strings. If any sequence is
a string, then f must return a character, and the result will be a string made
up of the results from f. Otherwise, the result will be a list of the results
from f. The sequences are processed up to the length of the shortest sequence.
For a single list, map is the same as map1.
Applies f to the elements of list. The results are cons’d together into a list.
Maps f on the arguments, and then joins the results together. f must return a list. nil results are omitted.
Returns the maximum arg. The args must be comparable with >.
Returns the median of the list (the element at the midpoint of the list when sorted).
Tests elements of list. If test is true for an element, returns the remainder of the list from that point. test is either an element or a predicate.
Merges two sorted lists into a sorted list. The original lists must be ordered according to the predicate function compare.
Destructively sorts list using the given comparison function. The sort is stable; if two elements compare as equal with compare, they will remain in the same order in the output. The original list is destroyed.
Returns the minimum arg. The args must be comparable with <.
Compares sequences and returns the position of the first mismatch (as determined by is). Returns nil if the sequences are identical.
Returns the element of list for which rating function f returns the largest value.
Tests if x is a multiple of base.
Creates a string of the given length.
Complement: returns true if expr is false, and false if expr is true.
not
.
Predicate to test if a character is not whitespace (space, newline, tab, or return).
Tests if n is a number (int or num).
numberp
.
Tests if n is odd. Argument n must be an integer.
Creates a procedure that will apply f to its arguments only if there are arguments.
Creates a function on one variable that tests if any of the original functions are true when applied to the variable.
Splits list into pairs. By default, each pair is made into a list. If specified, function f is applied to each pair.
Peeks at the next character from the input port, but leaves the character for future reads. It uses stdin if the argument is nil. It returns the character, or nil for end-of-file.
Returns the index of the first element of seq that satisfies test. seq is a list or string. test is either an object or predicate function. If start is given, testing starts at that element.
Tests if x is a number and is positive (>= 0). This fails on complex numbers.
Predicate to detemine if c is a punctuation character in the set: .,;:!?
Terminates the process, causing SBCL to exit with CODE. CODE
defaults to 0 when ABORT is false, and 1 when it is true.
When ABORT is false (the default), current thread is first unwound,
*EXIT-HOOKS* are run, other threads are terminated, and standard
output streams are flushed before SBCL calls exit(3) – at which point
atexit(3) functions will run. If multiple threads call EXIT with ABORT
being false, the first one to call it will complete the protocol.
When ABORT is true, SBCL exits immediately by calling _exit(2) without
unwinding stack, or calling exit hooks. Note that _exit(2) does not
call atexit(3) functions unlike exit(3).
Recursive calls to EXIT cause EXIT to behave as if ABORT was true.
TIMEOUT controls waiting for other threads to terminate when ABORT is
NIL. Once current thread has been unwound and *EXIT-HOOKS* have been
run, spawning new threads is prevented and all other threads are
terminated by calling TERMINATE-THREAD on them. The system then waits
for them to finish using JOIN-THREAD, waiting at most a total TIMEOUT
seconds for all threads to join. Those threads that do not finish
in time are simply ignored while the exit protocol continues. TIMEOUT
defaults to *EXIT-TIMEOUT*, which in turn defaults to 60. TIMEOUT NIL
means to wait indefinitely.
Note that TIMEOUT applies only to JOIN-THREAD, not *EXIT-HOOKS*. Since
TERMINATE-THREAD is asynchronous, getting multithreaded application
termination with complex cleanups right using it can be tricky. To
perform an orderly synchronous shutdown use an exit hook instead of
relying on implicit thread termination.
Consequences are unspecified if serious conditions occur during EXIT excepting errors from *EXIT-HOOKS*, which cause warnings and stop execution of the hook that signaled, but otherwise allow the exit process to continue normally.
exit
.
random
.
Generates a random string of alphanumerics of length n.
Returns a random element from a list, or a random character from a string. It also works on a table with integer keys from 0 to n.
Creates a list of numbers from start to end in steps of 1. The last number is <= end.
Reads a character from the input-port (or default of stdin). Returns nil on end-of-file.
Reads a character from the input-port (or default of stdin). Returns nil on end-of-file.
Recursively applies f to tail subsequences of list and returns the first true result. Returns nil if none.
Recursively steps through the string until f returns a non-nil value, and returns that value. Returns nil otherwise. The values passed to f are integer indices; the indices start at 0, or start if specified.
Reduces list using f. Applies f to the first two elements of list. Then recursively applies f to that result and the next element of list.
Creates a new list with elt inserted into the sorted list list if it is not already present. The original list must be sorted according to the comparison function. The original list is unmodified.
Removes elements from seq that satisfy test. test is either a function or an object. seq is either a list or string.
Reverses list.
reverse
.
Rounds n to the nearest value. Halfs are rounded away from zero.
Reduces list using f in reverse. Applies f to the last two elements of list. Then recursively applies f to that result and the previous element of list.
Sets car of list to a new expression. If applied to a string, sets the first character of the string, which must have length at least one.
Sets cdr of a list.
Return the sine of NUMBER.
sin
.
Returns true if given a list of length one.
This function causes execution to be suspended for SECONDS. SECONDS may be any non-negative real number.
sleep
.
Sorts the sequence (list or string) using the specified comparison function. The original sequence is unmodified.
Splits list into two lists at the given position, which must be between 1 and the length of the list.
Converts the args into a string. The args must be coerce-able to a string.
Returns the table as a list of key/value pairs
Return the tangent of NUMBER.
tan
.
Creates a predicate from test. If test is a function, it is used as the predicate. Otherwise, a function is created to test equality with test using ’is’.
Rounds down to the nearest multiple of n.
Maps function f onto list and returns only the true (non-nil) values.
Truncates to an integer. Was ’truncate’ in arc0.
Splits list into groups of n. tuples is a generalization of pair.
Takes union of sequence xs and ys. Predicate f is used to determine equality to filter out duplicates. xs and ys must both be lists or strings.
Generates a unique symbol.
gensym
.
Converts a string, character, or symbol to lower case. This only converts ASCII; Unicode is unchanged.
Predicate to test if a character is whitespace (space, newline, tab, or return).
write-char
.
This predicate returns true if x is in the choices. Note that each choice is a separate argument.
Sets the places to nil. Typically, the places are simple variables.
Rounds down to the nearest multiple of n. Was ’to-nearest’ in arc0-2.
Jump to: | %
(
*
+
-
<
=
>
_
A B C D E F G H I J K L M N O P Q R S T U V W X Z |
---|
Jump to: | %
(
*
+
-
<
=
>
_
A B C D E F G H I J K L M N O P Q R S T U V W X Z |
---|
Jump to: | .
A B C H O S T |
---|
Jump to: | .
A B C H O S T |
---|
Jump to: | A B C E F H I L M N O P R S T U V |
---|
Jump to: | A B C E F H I L M N O P R S T U V |
---|