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: darcs merge conflict was recorded into package.lisp
[alexandria.git]
/
package.lisp
blob
0efaf8a4a4a3b86bc368b48bc7124a455616aa42
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
#:
switch
16
#:
whichever
17
#:
xor
18
;; Hash tables
19
#:
alist-hash-table
20
#:
copy-hash-table
21
#:
hash-table-alist
22
#:
hash-table-keys
23
#:
hash-table-plist
24
#:
hash-table-values
25
#:
maphash-keys
26
#:
maphash-values
27
#:
plist-hash-table
28
;; Functions
29
#:
compose
30
#:
conjoin
31
#:
curry
32
#:
disjoin
33
#:
ensure-function
34
#:
multiple-value-compose
35
#:
named-lambda
36
#:
rcurry
37
;; Lists
38
#:
alist-plist
39
#:
appendf
40
#:
nconcf
41
#:
circular-list
42
#:
circular-list-p
43
#:
circular-tree-p
44
#:
ensure-car
45
#:
ensure-cons
46
#:
ensure-list
47
#:
flatten
48
#:
lastcar
49
#:
make-circular-list
50
#:
map-product
51
#:
mappend
52
#:
nunionf
53
#:
plist-alist
54
#:
proper-list
55
#:
proper-list-p
56
#:
remove-from-plist
57
#:
remove-from-plistf
58
#:
delete-from-plist
59
#:
delete-from-plistf
60
#:
set-equal
61
#:
setp
62
#:
unionf
63
;; Numbers
64
#:
binomial-coefficient
65
#:
clamp
66
#:
count-permutations
67
#:
factorial
68
#:
gaussian-random
69
#:
iota
70
#:
lerp
71
#:
map-iota
72
#:
maxf
73
#:
mean
74
#:
median
75
#:
minf
76
#:
standard-deviation
77
#:
subfactorial
78
#:
variance
79
;; Arrays
80
#:
array-index
81
#:
array-length
82
#:
copy-array
83
;; Sequences
84
#:
copy-sequence
85
#:
deletef
86
#:
emptyp
87
#:
ends-with
88
#:
ends-with-subseq
89
#:
first-elt
90
#:
last-elt
91
#:
map-combinations
92
#:
map-derangements
93
#:
map-permuations
94
#:
proper-sequence
95
#:
random-elt
96
#:
removef
97
#:
rotate
98
#:
sequence-of-length-p
99
#:
shuffle
100
#:
starts-with
101
#:
starts-with-subseq
102
;; Macros
103
#:
once-only
104
#:
parse-body
105
#:
with-gensyms
106
#:
with-unique-names
107
;; Symbols
108
#:
ensure-symbol
109
#:
format-symbol
110
#:
make-gensym-list
111
#:
make-keyword
112
;; Strings
113
#:
string-designator
114
;; Types
115
#:
of-type
116
#:
type
=
117
#:
coercef
118
;; Conditions
119
#:
required-argument
120
#:
ignore-some-conditions
121
#:
simple-style-warning
122
;; Features
123
#:
featurep
124
))