p'lisp

Clojure reference

For: Anyone writing code for p'lisp.

Every name here works as it does in Clojure, so the ClojureDocs page for it applies. Each name links there. Checked counts the tests that compare p'lisp's answer with real Clojure's. A name marked differs has a test where p'lisp gives a different answer on purpose; p'lisp for Clojure people explains the usual reasons.

This list is made from the evaluator itself, so it is never out of date.

466 names.

Special forms and macros

clojure.core

NameKindChecked
->macro15 differs
->>macro14
andspecial form6
as->macro5
assertmacro5
bindingspecial form20
bound-fnmacro2
casespecial form10
commentmacro1
condspecial form6
cond->special form17
cond->>macro5
condpmacro8
declarespecial form9 differs
defspecial form139 differs
defmacromacro0
defmethodmacro18
defmultispecial form20
defnmacro162 differs
defn-macro10
defoncespecial form6
defprotocolmacro5
delaymacro1
dospecial form110
doseqspecial form9
dotimesspecial form5
dotomacro3
extendmacro1
extend-protocolmacro2
extend-typemacro2
fnspecial form211 differs
fn*special form0
forspecial form32
ifspecial form83 differs
if-letspecial form14
if-notspecial form6
if-somemacro6
in-nsspecial form15
lazy-catmacro4
lazy-seqspecial form50
letspecial form198 differs
letfnmacro5
loopspecial form32
nsspecial form38 differs
orspecial form5
quotespecial form3
recurspecial form38
requirespecial form134 differs
set!special form3
some->special form16
some->>special form19
tryspecial form72
varspecial form14
whenspecial form8
when-firstmacro6
when-letspecial form5
when-notspecial form1
when-somemacro3
whilemacro3
with-bindingsmacro1
with-local-varsmacro1
with-out-strspecial form19
with-redefsmacro2

Functions

Calculator built-ins

NameKindChecked
%function0 differs
powfunction0 differs
sqfunction1 differs
sqrtfunction0 differs

clojure.core

NameKindChecked
*function58 differs
*'function24
+function113 differs
+'function0
-function21
-'function0
.getCausefunction1
.getMessagefunction4
/function38 differs
<function28 differs
<=function10 differs
=function103 differs
==function2
>function17 differs
>=function7 differs
ArithmeticException.function0
AssertionError.function1
ClassCastException.function0
Error.function1
Exception.function15
IllegalArgumentException.function1
IllegalStateException.function0
IndexOutOfBoundsException.function0
NullPointerException.function0
NumberFormatException.function1
RuntimeException.function2
Throwable.function0
UnsupportedOperationException.function0
absfunction6 differs
add-watchfunction4
aliasfunction1
all-nsfunction0
alter-meta!function3
alter-var-rootfunction2
ancestorsfunction2
any?function1
applyfunction22
array-mapfunction1
assocfunction18 differs
assoc!function8
assoc-infunction4
associative?function1
atomfunction84
bigintfunction2
bit-andfunction4
bit-and-notfunction1
bit-clearfunction1
bit-flipfunction1
bit-notfunction2
bit-orfunction1
bit-setfunction1
bit-shift-leftfunction2
bit-shift-rightfunction1
bit-testfunction1
bit-xorfunction4
booleanfunction1
boolean?function0
bound-fn*function1
bound?function1
bounded-countfunction1
butlastfunction2
catfunction0
charfunction5
char?function1
clojure-versionfunction1
coll?function5
compfunction4
comparatorfunction1
comparefunction24 differs
compare-and-set!function2
complementfunction1
completingfunction1
concatfunction13
conjfunction20 differs
conj!function15
consfunction37
constantlyfunction5
contains?function12 differs
countfunction66 differs
counted?function0
create-nsfunction6
cyclefunction4
decfunction41
dec'function0
dedupefunction6
delay?function2
denominatorfunction1
dereffunction2
derivefunction14
descendantsfunction2
disjfunction4 differs
disj!function3
dissocfunction6
dissoc!function5
distinctfunction2
distinct?function1
doallfunction2
dorunfunction3
dropfunction3
drop-lastfunction2
drop-whilefunction2
eductionfunction1
emptyfunction3
empty?function4
ensure-reducedfunction1
even?function8
every-predfunction1
every?function8
ex-causefunction3
ex-datafunction12
ex-infofunction20
ex-messagefunction21
extendersfunction0
extends?function0
false?function1
ffirstfunction2
filterfunction20
filtervfunction1
findfunction2
find-keywordfunction0
find-nsfunction2
find-varfunction2
firstfunction48
flattenfunction1
flushfunction1
fn?function3
fnextfunction1
fnilfunction16
forcefunction2
formatfunction7
frequenciesfunction3
gensymfunction1
getfunction20 differs
get-infunction1
get-methodfunction2
get-thread-bindingsfunction1
get-validatorfunction2
group-byfunction1
halt-whenfunction1
hash-mapfunction4 differs
hash-setfunction1 differs
ident?function1
identical?function8
identityfunction2
ifn?function0
incfunction55
inc'function0
indexed?function1
intfunction12 differs
int?function1
integer?function3
interleavefunction3
internfunction4
interposefunction3
intofunction23 differs
isa?function4
iteratefunction11
iterationfunction1
juxtfunction2
keepfunction2
keep-indexedfunction3
keyfunction1
keysfunction7 differs
keywordfunction8
keyword?function1
lastfunction36
listfunction6
list*function1
list?function1
longfunction3
macroexpandfunction0
macroexpand-1function0
make-hierarchyfunction10
mapfunction103 differs
map-entry?function1
map-indexedfunction3
map?function1
mapcatfunction4
mapvfunction9
maxfunction6 differs
max-keyfunction1
memoizefunction2
mergefunction6
merge-withfunction1
metafunction20
methodsfunction4
minfunction5 differs
min-keyfunction1
modfunction17 differs
namefunction5
namespacefunction6
nat-int?function1
neg-int?function1
neg?function4
newlinefunction1
nextfunction7
nfirstfunction1
nil?function6
nnextfunction1
notfunction3
not-any?function1
not-emptyfunction1
not-every?function1
not=function4
ns-aliasesfunction1
ns-internsfunction1
ns-mapfunction0
ns-namefunction1
ns-publicsfunction1
ns-refersfunction1
ns-resolvefunction1
ns-unaliasfunction0
ns-unmapfunction1
nthfunction15 differs
nthnextfunction1
nthrestfunction1
numfunction1
number?function3
numeratorfunction2
odd?function9
parentsfunction2
parse-booleanfunction1
parse-longfunction2
partialfunction2
partitionfunction2
partition-allfunction2
partition-byfunction8
partitionvfunction1
partitionv-allfunction1
peekfunction5
persistent!function24
popfunction6
pop!function3
pos-int?function1
pos?function13
prfunction1
pr-strfunction12
prefer-methodfunction2
prefersfunction1
printfunction9
print-strfunction1
printffunction1
printlnfunction6
println-strfunction3
prnfunction5
prn-strfunction1
qualified-ident?function1
qualified-keyword?function1
qualified-symbol?function1
quotfunction15 differs
randfunction5
rand-intfunction9
rand-nthfunction12
random-samplefunction1
rangefunction128 differs
ratio?function1
rational?function1
rationalizefunction1
re-findfunction49
re-matchesfunction7
re-patternfunction4
re-seqfunction20
read-stringfunction1
realized?function3
record?function1
reducefunction58 differs
reduce-kvfunction1
reducedfunction16
reduced?function3
reductionsfunction5
referfunction1
remfunction10
removefunction2
remove-all-methodsfunction1
remove-methodfunction1
remove-nsfunction1
remove-watchfunction2
repeatfunction12
repeatedlyfunction3
replacefunction2
reset!function7 differs
reset-meta!function2
reset-vals!function1
resolvefunction4
restfunction16
reversefunction2
reversible?function1
rseqfunction2
run!function2
satisfies?function1
secondfunction7
select-keysfunction9
seqfunction25
seq?function3
seqable?function1
sequencefunction1
sequential?function0
setfunction6 differs
set-validator!function2
set?function0
shufflefunction3
simple-ident?function1
simple-keyword?function1
simple-symbol?function1
somefunction13
some-fnfunction1
some?function3
sortfunction12
sort-byfunction1
special-symbol?function1
split-atfunction1
split-withfunction1
splitv-atfunction1
strfunction29 differs
string?function3
subsfunction20 differs
subvecfunction6
swap!function51
swap-vals!function2
symbolfunction5
symbol?function2
takefunction54
take-lastfunction3
take-nthfunction4
take-whilefunction3
the-nsfunction2
thread-bound?function1
throwfunction38
trampolinefunction1
transducefunction2
transientfunction58
tree-seqfunction4
true?function0
typefunction1
underivefunction3
unreducedfunction1
unsigned-bit-shift-rightfunction1
updatefunction9
update-infunction3
update-keysfunction1
update-valsfunction1
valfunction1
valsfunction2
var-getfunction5
var-setfunction3
var?function3
vary-metafunction1
vecfunction34 differs
vectorfunction3
vector?function4
volatile!function1
volatile?function1
vreset!function1
vswap!function2
with-bindings*function2
with-metafunction8
with-redefs-fnfunction1
zero?function32 differs
zipmapfunction2

clojure.set

NameKindChecked
differencefunction1
indexfunction1
intersectionfunction1
joinfunction17 differs
map-invertfunction1
projectfunction1
renamefunction1
rename-keysfunction1
selectfunction1
subset?function1
superset?function1
unionfunction1

clojure.string

NameKindChecked
blank?function7
capitalizefunction1
ends-with?function4
escapefunction1
includes?function7 differs
index-offunction1
joinfunction17 differs
last-index-offunction1
lower-casefunction5 differs
re-quote-replacementfunction1
replacefunction16
replace-firstfunction4
reversefunction1
splitfunction35 differs
split-linesfunction15
starts-with?function8 differs
trimfunction7
trim-newlinefunction1
trimlfunction1
trimrfunction1
upper-casefunction7 differs

clojure.walk

NameKindChecked
keywordize-keysfunction1
postwalkfunction1
postwalk-replacefunction1
prewalkfunction1
prewalk-replacefunction1
stringify-keysfunction1
walkfunction1