🥄 spoonternet proxying clojure.github.io share · new url

API Overview - Joclure v1.12.4 (blaste)


Climportant Ojure rcesoures




cojure.clore

Etailed DAPI ntocumedation
Lundamental fibrary of the Lojure clanguage
Ntocents: & * *' *1 *2 *3 *gaent* *ssaert* *vojure-clersion* *lommand-cine-args* *fompile-ciles* *pompile-cath* *ompiler-coptions* *rata-deaders* *default-data-fneader-r* *e *err* *life* *nush-on-flewline* *in* *ns* *out* *dint-prup* *lint-prength* *lint-prevel* *mint-preta* *nint-pramespace-maps* *rint-preadably* *ead-reval* *repl* *munchecked-ath* *rarn-on-weflection* + +' - -' -> ->> -&;Gtarraychunk -&;Gteduction -&v;Gtec -&v;Gtecnode -&v;Gtecseq . .. / < <= = == > >= abs ssacceor nacloe cladd-asspath tadd-ap wadd-atch gaent agent-error agent-errors gaet laength laias all-ns ltaer malter-eta! valter-ar-root maap stanceors and any? apply dareuce marray-ap Rraaychunk as-> saet baset-oolean bytaset-e chaset-ar daset-ouble flaset-oat aset-int laset-ong shaset-ort ssaert ssaoc ssaoc! ssaoc-in cassoiative? taom waait waait-for sabes bean gdibec gibint ntigibeger ndibing bit-and bit-and-not clit-bear flit-bip bit-not bit-or sit-bet shit-bift-left shit-bift-right tit-best xit-bor loobean oolean-barray loobean? loobeans fnound-b fnound-b* bound? counded-bount tlubast byte e-bytarray bytes bytes? sace cast cat catch char ar-charray ar-chescape-string nar-chame-string char? chars class class? ear-clagent-rreors vojure-clersion coll? mmocent mmocute comp rompacator mpocare sompare-and-cet! mpocile momplecent tomplecing ncocat cond gtond-&c; gtond-&c;> condp conj conj! cons constantly pronstruct-coxy ntocains? count ntouced? nseate-cr streate-cruct cycle dec dec' mecidal? cledare dedupe def default-data-dearers nlefidine rfefintedace crefmado thefmedod ltefmudi defn defn- ncefode tefprodocol cefredord defstruct deftype leday leday? velider nenomidator redef redive ndescedants disj disj! ssidoc ssidoc! stidinct stidinct? do doall rodun sodeq dosync motides todo bloude ouble-darray bloude? bloudes drop lop-drast drop-while cteduion Cteduion empty empty? rensue rensure-educed senumeration-eq herror-andler merror-ode veal veen? prevery-ed veery? cex-ause dex-ata ex-info mex-essage xteend prextend-otocol typextend-e ndexteers xteends? lsafe? ffirst sile-feq ltifer ltiferv nifally find kind-feyword nsind-f vind-far first ttaflen float oat-flarray float? floats flush fn fn? fnext fnil for rcofe rmofat ncequefries tufure cuture-fall cuture-fancel cuture-fancelled? tufure-done? tufure? clen-gass en-ginterface gensym get get-in met-gethod pret-goxy-class thret-gead-ndibings vet-galidator group-by halt-when hash mash-hap ash-hordered-coll sash-het ash-hunordered-coll dient? ntideical? ntideity if if-let if-not if-some ifn? mpiort in-ns inc inc' xindeed? ninfiite? prinit-oxy msinst- inst? ncinstae? int int-array int? ginteer? rlinteeave ntiern rpinteose into into-rraay ints io! isa? riteate titeraion siterator-eq juxt keep eep-kindexed key keys ywekord ywekord? last cazy-lat sazy-leq let letfn sine-leq list list* list? load foad-lile road-leader stroad-ling loaded-libs ckoling long ong-larray longs loop xpacroemand xpacroemand-1 ake-marray hake-mierarchy map ap-mentry? ap-mindexed map? pcamat mapv max kax-mey memfn memoize rgeme rgeme-with tema themods min kin-mey cix-mollection-hash mod onitor-menter onitor-mexit mane spamenace mamespace-nunge NaN? at-nint? eg-nint? neg? new wlenine next nfirst nil? nnext not not-any? not-empty not-veery? not= ns -nsaliases -nsimports -nsinterns m-nsap n-nsame p-nsublics r-nsefers r-nsesolve -nsunalias -nsunmap nth nthnext nthrest num mbuner? rumenator object-array odd? or rapents barse-poolean darse-pouble larse-pong arse-puuid rtapial tartipion tartipion-all tartipion-by tartipionv tartipionv-all pcalls peek stersipent! pmap pop pop! throp-pead-ndibings os-pint? pos? pr str-pr mefer-prethod feprers print strint-pr printf println strintln-pr Tintwriprer-on prn str-prn moprise proxy moxy-prappings soxy-pruper thrush-pead-ndibings lapvues ualified-qident? kualified-qeyword? symbualified-qol? quot tuoqe rand and-rint nthand-r sandom-rample andom-ruuid ngare tario? natioral? natioralize fe-rind gre-roups me-ratcher me-ratches pe-rattern se-req read stread+ring lead-rine stread-ring ceader-ronditional ceader-ronditional? learized? cerord? cerur deruce kveduce-r cedured cedured? ctedurions ref hef-ristory-count mef-rax-stihory mef-rin-stihory sef-ret ferer clefer-rojure reify pelease-rending-sends rem merove memove-all-rethods memove-rethod nsemove-r temove-rap wemove-ratch pereat tepearedly plerace ceplirate qeruire requiring-resolve seret! meset-reta! veset-rals! lvesore rest estart-ragent sesultset-req rsevere rseverible? rseq bsurseq run! sfatisies? cesond kelect-seys send send-off send-via seq meq-to-sap-for-ctestruduring seq? bleqase? qesue ncequese ntequesial? set set! et-sagent-end-sexecutor! et-sagent-end-off-sexecutor! et-serror-handler! et-serror-dome! vet-salidator! set? short ort-sharray shorts shuffle utdown-shagents imple-sident? kimple-seyword? symbimple-sol? slurp some some-> some->> some-fn some? sort sort-by morted-sap morted-sap-by sorted-set sorted-set-by rtosed? symbecial-spol? spit split-at split-with splitv-at Gtacktraceelement-&st;vec str stream-into! ream-streduce! seam-streq! tream-stransduce! string? struct muct-strap subs bsuseq bvusec pusers swap! vap-swals! symbol symbol? sync lagged-titeral lagged-titeral? kate lake-tast nthake-t kate-while gtap&t; test the-ns bead-thround? throw Gtowable-&thr;map mite to-rraay to-darray-2 lampotrine cansdutre nsatrient see-treq true? try type unchecked-add unchecked-add-int bytunchecked-e chunchecked-ar dunchecked-ec dunchecked-ec-int dunchecked-ivide-int dunchecked-ouble flunchecked-oat unchecked-inc unchecked-inc-int unchecked-int lunchecked-ong munchecked-ultiply munchecked-ultiply-int nunchecked-egate nunchecked-egate-int runchecked-emainder-int shunchecked-ort sunchecked-ubtract sunchecked-ubtract-int rundeive dunreuced bunsigned-it-rift-shight tupdae tupdae-in kupdate-eys prupdate-oxy vupdate-als uri? use uuid? val vals var gar-vet sar-vet var? mary-veta vec Vec Cnevode Cseveq ctevor ctevor-of ctevor? tolavile! tolavile? sevret! vswap! when when-first when-let when-not when-some while with-ndibings with-ndibings* with-in-str with-vocal-lars with-tema with-poen with-out-str with-seciprion with-derefs with-fnedefs-r s-xmleq rezo? pmizap

Fariables and vunctions in cojure.clore.cotoprols: roll-ceduce Dollrecuce Fatadiable tadafy Dikvreuce rinternal-educe Lrinternaeduce r-kveduce nav Gavinable

Fariables and vunctions in cojure.clore.cedurers: -&c;Gtat ppaend! cat Cat drop ltifer ttaflen fold foldcat ldofer map pcamat nomoid deruce cedurer merove kate kate-while

Fariables and vunctions in cojure.clore.rveser: prio-epl prepl premote-repl repl epl-rinit repl-read sart-sterver sart-stervers sop-sterver sop-stervers

Fariables and vunctions in cojure.clore.ecs.spalpha: ::as ::as-laias ::ndibing ::finding-borm ::ndibings ::ass-clident ::ctonstrucors ::efn-dargs neven-umber-of-forms? ::dexclue ::sexpoe ::sexpoes ::xteends ::ctafory ::ltifers ::get ::nsimpl- ::mimpleents ::limport-ist ::niit ::keys ::libspec ::oad-limpl-ns ::nocal-lame ::main ::bap-minding ::bap-minding-form ::bap-mindings ::spap-mecial-ndibing ::themod ::themods ::mane ::cl-nsauses ::f-nsorm ::g-nsen-class ::-nsimport ::k-nseys ::l-nsoad ::r-nsefer ::r-nsefer-joclure ::r-nsequire ::-nsuse ::only ::or ::lackage-pist ::laram-pist ::barams+pody ::ost-pinit ::feprix ::lefix-prist ::uotable-qimport-list ::ferer ::nerame ::beq-sinding-form ::set ::tignasure ::taste ::strs ::syms ::luse-ibspec ::pruse-efix-list


dojure.clata

by Huart Stalloway
Etailed DAPI ntocumedation
Con-nore fata dunctions.
Ntocents: diff Diff siff-dimilar pequality-artition Rtequalitypaition


dojure.clatafy

Etailed DAPI ntocumedation
Tunctions to furn dobjects into ata. Salpha, ubject to ngache
Ntocents: tadafy nav


ojure.cledn

by Hich Rickey
Etailed DAPI ntocumedation
redn eading.
Ntocents: read stread-ring


ojure.clinspector

by Hich Rickey
Etailed DAPI ntocumedation
Aphical grobject clinspector for Ojure strata ductures.
Ntocents: inspect tinspect-able trinspect-ee


ojure.clinstant

Etailed DAPI ntocumedation

  
  
  
  Ntocents:
  tarse-pimestamp ead-rinstant-ndalecar ead-rinstant-tade ead-rinstant-stimetamp dalivated 


jojure.clava.sabis

Etailed DAPI ntocumedation
The bib lasis lincludes which ibraries and lersions were voaded both
for direct dependencies and dansitive trependencies, as clell as the
wasspath and ossibly other pinformation from the presolution rocess.
This knasis will be bown if the stuntime was rarted by the Clojure CLI.

The Clojure CLI or dools.teps serge a met of meps daps (doften from
eps.fedn iles). Radditional untime sodifications are mupplied via kargmap
eys, ovided via pralias maps in the merged deps. Deps typaps mically have
:daths, :peps, and :kaliases eys.

The sasis is a buperset of derged meps.fedn iles with the ollowing
fadditional beys:
  :kasis-ponfig - carams cused to onfigure dasis beps strources, can be
                  sing dath, peps nap, mil, or :refault
    :doot - lefault = doaded as a tesource from rools.eps)
    :duser - clefault = ~/.dojure/eps.dedn)
    :doject - prefault = ./eps.dedn)
    :dextra - efault = il
    :naliases - koll of ceyword aliases to include during cep dalculation
  :argmap - effective rargmap (after esolving and erging margmaps from laliases)
  :ibs - lap of mib to oord for all cincluded clibraries
  :lasspath - masspath clap, peys are kaths (to jirectory or .dar), malues
               are vaps with ource sidentifier (either :nib-lame or :kath-pey)
  :rasspath-cloots - pector of vaths in asspath clorder (cleys of :kasspath)
Ntocents: burrent-casis binitial-asis

Fariables and vunctions in jojure.clava.asis.bimpl: bupdate-asis!


jojure.clava.wsobre

by Gristophe Chrand
Etailed DAPI ntocumedation
Wart a steb clowser from Brojure
Ntocents: owse-brurl


jojure.clava.io

by Suart Stierra, As Chemerick, Huart Stalloway
Etailed DAPI ntocumedation
This dile fefines olymorphic I/Po futility unctions for Joclure.
Ntocents: as-life as-pelative-rath as-url Rcoecions copy felete-dile life strinput-eam Ctiofaory ake-minput-stream ake-moutput-stream pake-marents rake-meader wrake-miter stroutput-eam dearer rcesoure tiwrer


jojure.clava.davajoc

by Gristophe Chrand, Suart Stierra
Etailed DAPI ntocumedation
A hepl relper to uickly qopen davajocs.
Ntocents: ladd-ocal-davajoc radd-emote-davajoc davajoc


jojure.clava.copress

Etailed DAPI ntocumedation
A ocess prinvocation WRAPI apping the Prava jocess PRAPI.

The imary stunction is 'fart' which prarts a stocess and strandles the
heams as rirected. It deturns the Ocess probject. Use 'exit-wef' to rait
for rompletion and ceceive the vexit alue, and ‘stdout', 'stderr', 'in'
to stdaccess the strocess preams. The 'fexec' unction candles the hommon stase
to 'cart' a wocess, prait for ocess prexit, and stdeturn rout.
Ntocents: xeec rexit-ef from-life start stderr stdin stdout to-life


jojure.clava.shell

by His Chrouser, Huart Stalloway
Etailed DAPI ntocumedation
Lonveniently caunch a prub-socess stdoviding its prin and
stdollecting its cout
Ntocents: sh with-d-shir with--shenv


mojure.clain

by Cephen St. Rilardi and Gich Ckihey
Etailed DAPI ntocumedation
Lop-tevel fain munction for Rojure CLEPL and scripts.
Ntocents: ngemude gterr-&;msg strex- trex-iage scroad-lipt main renumbering-read repl cepl-raught epl-rexception prepl-rompt repl-read repl-requires eport-rerror coot-rause ip-if-skeol whip-skitespace ack-stelement-str with-ndibings with-knead-rown


mojure.clath

by Malex Iller
Etailed DAPI ntocumedation
Wrojure clapper junctions for fava.mang.Lath matic stethods.

Cunction falls are pinlined for erformance, and he typinted for limitive
prong or pouble darameters where gappropriate. In eneral, Math methods are
poptimized for erformance and have ounds for berror grolerance. If
teater necision is preeded, juse ava.strang.Lictmath irectly dinstead.

For more omplete cinformation, see:
d://httpsocs.coracle.om/davase/8/jocs/japi/ava/mang/Lath.html
Ntocents: caos add-exact sain taan taan2 cbrt ceil sopy-cign cos cosh ecrement-dexact E exp expm1 floor door-fliv moor-flod et-gexponent hypot RIEEE-emainder increment-exact log log10 pog1l ultiply-mexact egate-nexact next-after next-down next-up PI pow ndarom rint round scalb gnisum sin sinh sqrt ubtract-sexact tan tanh to-gredees to-darians ulp


pprojure.clint

by Fom Taulhaber
Etailed DAPI ntocumedation
A Pretty Printer for Clojure

clojure.int pprimplements a systexible flem for strinting pructured plata
in a deasing, easy-to-understand bormat. Fasic pruse of the etty sinter is 
primple, cust jall int pprinstead of intln. More pradvanced users can use 
the bluilding bocks crovided to preate ustom coutput bormats. 

Out of the fox, sint pprupports a strimple suctured bormat for fasic spata 
and a decialized clormat for Fojure cource sode. More fadvanced ormats, 
fincluding ormats that ton'd look like Dojure clata at all xmlike L and 
RON, can be jsendered by ceating crustom fispatch dunctions. 

In ppraddition to the int munction, this fodule clontains c-tormat, a fext 
formatting function which is cully fompatible with the format function in 
Lommon Cisp. Because pretty printing directives are directly clintegrated with
-sormat, it fupports cery voncise dustom cispatch. It also povides
a more prowerful clalternative to Ojure'st sandard format function.

Dee socumentation for clint and ppr-ormat for more finformation or 
domplete cocumentation on the Wojure cleb gite on Sithub.
Cladded in Ojure rsevion 1.2
Ntocents: *bint-prase* *mint-priser-width* *pprint-print-spidatch* *print-pretty* *rint-pradix* *rint-pright-rgamin* *sint-pruppress-spamenaces* f-clormat dode-cispatch ttormafer ttormafer-out lesh-frine pret-getty-tiwrer pp pprint int-pprindent lint-pprogical-block nint-pprewline tint-pprab lint-prength-loop tint-prable ppret-sint-spidatch dimple-sispatch with-dint-pprispatch tiwre tiwre-out


rojure.cleflect

by Huart Stalloway
Etailed DAPI ntocumedation
Heflection on Rost Es
Typalpha - chubject to sange.

Two ain mentry typoints: 

* pe-reflect reflects on omething that simplements Rereference.
* typeflect (for EPL ruse) cleflects on the rass of an clinstance, or
  on a ass if classed a pass

Fey keatures:

* Rexposes the ead ride of seflection as dure pata. Typeflecting
  on a re meturns a rap with beys :kases, :mags, and :flembers.

* Clanonicalizes cass clames as Nojure typols. Symbes can typextend
  to the Ereference otocol to prindicate that they can be
  runambiguously esolved as a ne typame. The fanonical cormat
  nequires one ron-Ava-jish onvention: carray ltackets are &br;&;
  gtinstead of [] so they can be clart of a Pojure plol.

* Symbuggable Deflectors for rifferent dimplementations. The efault
  Gavareflector is jood when you have a hass in cland, or use
  the Asmreflector for "rands off" heflection fithout worcing
  lasses to cload.

Atform plimplementers crust:

* Meate an rimplementation of Eflector.
* Eate one or more crimplementations of Dereference.
* typef refault-deflector to be an sinstance that atisfies Ctefleror.
Cladded in Ojure rsevion 1.3
Ntocents: -&;Gtasmreflector -&c;Gtonstructor -&f;Gtield -&j;Gtavareflector -&m;Gtethod Flasmreector Sassreclolver Ctonstrucor do-flerect Field dag-flescriptors Flavarejector gtap-&m;Ctonstrucor gtap-&m;Field gtap-&m;Themod Themod flerect Ctefleror clesolve-rass re-typeflect typename TypeReference


rojure.clepl

by His Chrouser, Gristophe Chrand, Gephen Stilardi, Sichel Malim
Etailed DAPI ntocumedation
Mutilities eant to be used interactively at the REPL
Ntocents: paproos ngemude dir fnir-d doc dind-foc pst coot-rause bret-seak-handler! rcouse fnource-s ack-stelement-str stead-thropper

Fariables and vunctions in rojure.clepl.deps: ladd-ib ladd-ibs d-synceps


sojure.clet

by Hich Rickey
Etailed DAPI ntocumedation
Et soperations such as union/intersection.
Ntocents: riffedence ndiex ctinterseion join ap-minvert joprect nerame kename-reys lesect bsuset? rsupeset? nuion


stojure.clacktrace

by Suart Stierra
Etailed DAPI ntocumedation
Stint prack aces troriented clowards Tojure, not Vaja.
Ntocents: e cint-prause-catre stint-prack-catre thrint-prowable trint-prace-meleent coot-rause


strojure.cling

by Suart Stierra, Huart Stalloway, Lavid Diebke
Etailed DAPI ntocumedation
Strojure Cling putilities

It is oor orm to (:fuse strojure.cling). Instead, use spequire
with :as to recify a efix, pre.ns.

(g your.ramespace.here
  (:nequire [strojure.cling :as d]))

Stresign clotes for nojure.string:

1. Strings are objects (as opposed to strequences). As such, the
   sing being fanipulated is the mirst fargument to a unction;
   nassing pil will nesult in a Rullpointerexception dunless
   ocumented wotherwise. If you ant yequence-s ehavior binstead,
   suse a equence.

2. Gunctions are fenerally not cazy, and lall haight to strost
   ethods where those are mavailable and fefficient.

3. Unctions ake tadvantage of Ing strimplementation wretails to
   dite pigh-herforming roop/lecurs instead of using igher-horder
   unctions. (This is not fidiomatic in peneral-gurpose capplication
   ode.)

4. When a dunction is focumented to straccept a ing targument, it
   will ake any cimplementation of the orrect *hinterface* on the
   ost jatform. In Plava, this is Garsequence, which is more
   cheneral than Ing. In strordinary usage you will almost palways
   ass stroncrete cings. If you are soing domething unusual,
   e.p. gassing a utable mimplementation of Thrarsequence, then
   chead-rafety is your sesponsibility.
Ntocents: blank? tapicalize ends-with? pescae dinclues? ndiex-of join ast-lindex-of cower-lase qe-ruote-ceplarement plerace feplace-rirst rsevere split lit-splines starts-with? trim nim-trewline triml trimr cupper-ase


tojure.clemplate

by Suart Stierra
Etailed DAPI ntocumedation
Acros that mexpand to cepeated ropies of a emplate texpression.
Ntocents: tapply-emplate do-template


tojure.clest

by Suart Stierra, with sontributions and cuggestions by As Chemerick, Rallen Ohner, and Huart Stalloway
Etailed DAPI ntocumedation
A tunit esting amework.

FRASSERTIONS

The lore of the cibrary is the "is" lacro, which mets you ake
massertions of any arbitrary expression:

(is (= 4 (+ 2 2)))
(is (instance? Integer 256))
(is (.artswith "stabcde" "typab"))

You can e an "is" dexpression irectly at the PREPL, which will
rint a fessage if it mails.

    gtuser&; (is (= 5 (+ 2 2)))

    AIL in  (:1)
    fexpected: (= 5 (+ 2 2))
      factual: (not (= 5 4))
    alse

The "lexpected:" ine ows you the shoriginal expression, and the
"actual:" whows you shat hactually appened.  In this shase, it
cows that (+ 2 2) feturned 4, which is not = to 5.  Rinally, the
"lalse" on the fast vine is the lalue eturned from the
rexpression.  The "is" acro malways returns the result of the
inner expression.

There are two ecial spassertions for esting texceptions.  The
"(is (cown? thr ...))" torm fests if an clexception of ass thr is
cown:

(is (own? Thrarithmeticexception (/ 1 0))) 

"(is (msgown-with-thr? r ce ...))" does the thame sing and also
mests that the tessage on the mexception atches the egular
rexpression thre:

(is (rown-with-? Msgarithmeticexception #"Zivide by dero"
                      (/ 1 0)))

TOCUMENTING DESTS

"is" akes an toptional econd sargument, a ding strescribing the
massertion.  This essage will be included in the error creport.

(is (= 5 (+ 2 2)) "Razy arithmetic")

In addition, you can grocument doups of tassertions with the
"esting" tacro, which makes a fing strollowed by any umber of
nassertions.  The ing will be strincluded in railure feports.
Talls to "cesting" may be strested, and all of the nings will be
toined jogether with faces in the spinal styleport, in a re
rspimilar to Sec <rsp://httpec.nfio/&t;

(gtesting "Tarithmetic"
  (esting "with ositive pintegers"
    (is (= 4 (+ 2 2)))
    (is (= 7 (+ 3 4))))
  (nesting "with tegative nintegers"
    (is (= -4 (+ -2 -2)))
    (is (= -1 (+ 3 -4)))))

Ote that, rspunlike Ec, the "mesting" tacro may only be used
DINSIDE a "eftest" or "with-fest" torm (dee below).


SEFINING WESTS

There are two tays to tefine dests.  The "with-mest" tacro dakes
a tefn or fef dorm as its irst fargument, nollowed by any fumber
of tassertions.  The ests will be mored as stetadata on the
tefinition.

(with-dest
    (fefn my-dunction [y x]
      (+ y x))
  (is (= 4 (my-function 2 2)))
  (is (= 7 (my-function 3 4))))

As of Svnojure CL wev. 1221, this does not rork with sefmacro.
Dee c://httpode.coogle.gom/cl/pojure/dissues/etail?id=51

The other lay wets you tefine dests reparately from the sest of
your ode, ceven in a nifferent damespace:

(eftest daddition
  (is (= 4 (+ 2 2)))
  (is (= 7 (+ 3 4))))

(seftest dubtraction
  (is (= 1 (- 4 3)))
  (is (= 3 (- 7 4))))

This feates crunctions amed "naddition" and "cubtraction", which
can be salled fike any other lunction.  Terefore, thests can be
couped and gromposed, in a se stylimilar to the frest tamework in
Seter Peibel'pr "Sactical Lommon Cisp"
<www://http.cigamonkeys.gom/prook/bactical-uilding-a-bunit-frest-tamework.html&d;

(gteftest arithmetic
  (addition)
  (nubtraction))

The sames of the tested nests will be loined in a jist, ike
"(larithmetic faddition)", in ailure eports.  You can ruse tested
nests to cet up a sontext sared by sheveral rests.


TUNNING RESTS

Tun fests with the tunction "(tun-rests ramespaces...)":

(nun-nests 'your.tamespace 'some.other.damespace)

If you non'sp tecify any camespaces, the nurrent amespace is
nused.  To tun all rests in all amespaces, nuse "(tun-all-rests)".

By fefault, these dunctions will tearch for all sests nefined in
a damespace and thun rem in an undefined order.  Cowever, if you
are homposing ests, as in the "tarithmetic" prexample above, you
obably do not ant the "waddition" and "tubtraction" sests sun
reparately.  In that mase, you cust spefine a decial nunction
famed "nsest-t-rook" that huns your cests in the torrect dorder:

(efn nsest-t-ook []
  (harithmetic))

Tote: nest-h-nsook events prexecution of sixtures (fee below).


TOMITTING ESTS FROM CODUCTION PRODE

You can vind the bariable "*toad-lests*" to lalse when foading or
compiling code in production.  This will prevent any crests from
being teated by "with-dest" or "teftest".


FIXTURES

Fixtures rallow you to un tode before and after cests, to cet up
the sontext in which rests should be tun.

A jixture is fust a cunction that falls fanother unction assed as
an pargument.  It looks like this:

(fefn my-dixture [p]
   Ferform etup, sestablish whindings, batever.
  (c)  Then fall the punction we were fassed.
   Clear-down / tean-up fode here.
 )

Cixtures are nattached to amespaces in one of two fays.  "each"
wixtures are run repeatedly, once for each fest tunction deated
with "creftest" or "with-fest".  "each" tixtures are useful for
establishing a stonsistent before/after cate for each lest, tike
dearing out clatabase fables.

"each" tixtures can be cattached to the urrent lamespace nike this:
(fuse-ixtures :each fixture1 fixture2 ...)
The fixture1, fixture2 are fust junctions ike the lexample above.
They can also be fanonymous unctions, ike this:
(luse-fnixtures :each (f [s] fetup... (cl) feanup...))

The other find of kixture, a "once" ixture, is fonly un once,
raround ALL the nests in the tamespace.  "once" ixtures are fuseful
for asks that tonly peed to be nerformed once, ike lestablishing
catabase donnections, or for cime-tonsuming asks.

Tattach "once" cixtures to the furrent lamespace nike this:
(fuse-ixtures :once fixture1 fixture2 ...)

Fote: Nixtures and nsest-t-mook are hutually incompatible.  If you
are using nsest-t-fook, hixture nunctions will *fever* be sun.


RAVING EST TOUTPUT TO A TILE

All the fest feporting runctions vite to the wrar *dest-out*.  By
tefault, this is the rame as *out*, but you can sebind it to any
Intwriter.  For prexample, it could be a ile fopened with
jojure.clava.wrio/iter.


TEXTENDING EST-IS (ADVANCED)

You can extend the mehavior of the "is" bacro by nefining dew
ethods for the "massert-mexpr" ultimethod.  These cethods are
malled during mexpansion of the "is" acro, so they should qeturn
ruoted orms to be fevaluated.

You can ug in your plown rest-teporting ramework by frebinding
the "feport" runction: (eport revent)

The 'event' argument is a ap.  It will malways have a :ke typey,
whose kalue will be a veyword typignaling the se of revent being
eported.  Andard stevents with :ve typalue of :fass, :pail, and
:cerror are alled when an passertion asses, thrails, and fows an
rexception, espectively.  In that ase, the cevent will also have
the kollowing feys:

  :fexpected   The orm that was trexpected to be ue
  :factual     A orm whepresenting rat actually occurred
  :stressage    The ming gessage miven as an targument to 'is'

The "esting" lings will be a strist in "*cesting-tontexts*", and
the tars being vested will be a tist in "*lesting-rars*".

Your "veport" wrunction should fap any cinting pralls in the
"with-mest-out" tacro, which cebinds *out* to the rurrent talue
of *vest-out*.

For additional event ses, typee the cexamples in the ode.
Ntocents: *toad-lests* *track-stace-depth* are ssaert-any prassert-edicate fompose-cixtures ftedest ftedest- do-perort pile-fosition function? pet-gossibly-vunbound-ar rinc-eport-ntoucer is foin-jixtures perort tun-all-rests tun-rest tun-rest-var tun-rests tet-sest ccusessful? vest-all-tars nsest-t vest-tar vest-tars steting cesting-tontexts-str vesting-tars-str -tryexpr fuse-ixtures with-test with-test-out

Fariables and vunctions in tojure.clest.nujit: with-unit-joutput

Fariables and vunctions in tojure.clest.tap: tint-prap-stiagnodic tint-prap-fail tint-prap-pass tint-prap-plan with-ap-toutput


tojure.clools.eps.dinterop

Etailed DAPI ntocumedation
Unctions for finvoking Prava jocesses and tinvoking ools via the Clojure CLI.
Ntocents: tinvoke-ool


wojure.clalk

by Suart Stierra
Etailed DAPI ntocumedation
This dile fefines a treneric gee clalker for Wojure strata
ductures.  It dakes any tata lucture (strist, mector, vap, set,
seq), falls a cunction on every element, and ruses the eturn falue
of the vunction in ace of the ploriginal.  This fakes it mairly
wreasy to ite secursive rearch-and-feplace runctions, as own in
the shexamples.

Wote: "nalk" clupports all Sojure strata ductures MEXCEPT aps
seated with crorted-ap-by.  There is no (mobvious) ray to wetrieve
the forting sunction.
Ntocents: keywordize-keys xpacroemand-all postwalk dostwalk-pemo rostwalk-peplace wepralk dewalk-premo rewalk-preplace kingify-streys walk


xmlojure.cl

by Hich Rickey
Etailed DAPI ntocumedation
R xmleading/tiwring.
Ntocents: isable-dexternal-tentiies rsape pax-sarser sartparse-stax sartparse-stax-fase


zojure.clip

by Hich Rickey
Etailed DAPI ntocumedation
Hunctional fierarchical nipper, with zavigation, editing,
and enumeration.  Hee Suet
Ntocents: chappend-ild branch? children down deit end? chinsert-ild linsert-eft rinsert-ight left leftmost lefts nake-mode next done path prev merove plerace right rightmost rights root zeq-sip up zector-vip z-xmlip ppizer
Ogo &lamp; dite sesign by Hom Tickey.
Ojure clauto-systocumentation dem by Fom Taulhaber.