repo.or.cz
/
alexandria.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix WHICHEVER
[alexandria.git]
/
package.lisp
blob
2a3808869b657e8f6b697615d039c22cecc04b29
1
(
defpackage
:
alexandria
.0
.dev
2
(:
nicknames
:
alexandria
)
3
(:
use
:
cl
)
4
(:
export
5
;; Binding constructs
6
#:
if-let
7
#:
if-let
*
8
#:
when-let
9
#:
when-let
*
10
;; Definitions
11
#:
define-constant
12
;; Control flow
13
#:
cswitch
14
#:
eswitch
15
#:
nth-value-or
16
#:
switch
17
#:
whichever
18
#:
xor
19
;; Hash tables
20
#:
alist-hash-table
21
#:
copy-hash-table
22
#:
ensure-gethash
23
#:
hash-table-alist
24
#:
hash-table-keys
25
#:
hash-table-plist
26
#:
hash-table-values
27
#:
maphash-keys
28
#:
maphash-values
29
#:
plist-hash-table
30
;; Functions
31
#:
compose
32
#:
conjoin
33
#:
curry
34
#:
disjoin
35
#:
ensure-function
36
#:
multiple-value-compose
37
#:
named-lambda
38
#:
rcurry
39
;; Lists
40
#:
alist-plist
41
#:
appendf
42
#:
nconcf
43
#:
circular-list
44
#:
circular-list-p
45
#:
circular-tree-p
46
#:
doplist
47
#:
ensure-car
48
#:
ensure-cons
49
#:
ensure-list
50
#:
flatten
51
#:
lastcar
52
#:
make-circular-list
53
#:
map-product
54
#:
mappend
55
#:
nunionf
56
#:
plist-alist
57
#:
proper-list
58
#:
proper-list-p
59
#:
remove-from-plist
60
#:
remove-from-plistf
61
#:
delete-from-plist
62
#:
delete-from-plistf
63
#:
set-equal
64
#:
setp
65
#:
unionf
66
;; Numbers
67
#:
binomial-coefficient
68
#:
clamp
69
#:
count-permutations
70
#:
factorial
71
#:
gaussian-random
72
#:
iota
73
#:
lerp
74
#:
map-iota
75
#:
maxf
76
#:
mean
77
#:
median
78
#:
minf
79
#:
standard-deviation
80
#:
subfactorial
81
#:
variance
82
;; Arrays
83
#:
array-index
84
#:
array-length
85
#:
copy-array
86
;; Sequences
87
#:
copy-sequence
88
#:
deletef
89
#:
emptyp
90
#:
ends-with
91
#:
ends-with-subseq
92
#:
first-elt
93
#:
last-elt
94
#:
map-combinations
95
#:
map-derangements
96
#:
map-permutations
97
#:
proper-sequence
98
#:
random-elt
99
#:
removef
100
#:
rotate
101
#:
sequence-of-length-p
102
#:
shuffle
103
#:
starts-with
104
#:
starts-with-subseq
105
;; Macros
106
#:
once-only
107
#:
parse-body
108
#:
with-gensyms
109
#:
with-unique-names
110
;; Symbols
111
#:
ensure-symbol
112
#:
format-symbol
113
#:
make-gensym-list
114
#:
make-keyword
115
;; Strings
116
#:
string-designator
117
;; Types
118
#:
of-type
119
#:
type
=
120
#:
coercef
121
;; Conditions
122
#:
required-argument
123
#:
ignore-some-conditions
124
#:
simple-style-warning
125
;; Features
126
#:
featurep
127
))