(each-indexed [counter init-count each coll & more-pairs] & body)
Given a binding vector of a counter and one or more sequence locals, run the loop as long as all the sequences have elements. Example: (each-indexed [i 0 j [10 20 30] k [:foo :bar :baz :qux]] (println i j k)) Output: 0 10 :foo 1 20 :bar 2 30 :baz
Given a binding vector of a counter and one or more sequence locals, run the loop as long as all the sequences have elements. Example: (each-indexed [i 0 j [10 20 30] k [:foo :bar :baz :qux]] (println i j k)) Output: 0 10 :foo 1 20 :bar 2 30 :baz
(expected expectation found)
(expected pred expectation found)
Throw illegal input exception citing expectation
and what was found
did not match. Optionally accept a predicate
fn to test found
before throwing the exception.
Throw illegal input exception citing `expectation` and what was `found` did not match. Optionally accept a predicate fn to test `found` before throwing the exception.
(expected-single-param-type found)
(expected-single-param-type suffix found)
(loop-indexed [counter init-count iteratee coll & more-pairs] & body)
Given a binding vector of a counter and one or more sequence-iteratees, run the loop as long as all the sequences have elements. Example: (loop-indexed [i 0 j [10 20 30] k [:foo :bar :baz :qux]] (println i j k)) Output: 0 (10 20 30) (:foo :bar :baz) 1 (20 30) (:bar :baz) 2 (30) (:baz)
Given a binding vector of a counter and one or more sequence-iteratees, run the loop as long as all the sequences have elements. Example: (loop-indexed [i 0 j [10 20 30] k [:foo :bar :baz :qux]] (println i j k)) Output: 0 (10 20 30) (:foo :bar :baz) 1 (20 30) (:bar :baz) 2 (30) (:baz)
(make-jdbc-event-listener {:keys [before on-success on-error lastly]
:or {before (fn [event])
on-success (fn [id nanos event])
on-error (fn [id nanos event error])
lastly (fn [id nanos event])}})
(with-connection [connection connection-source] & body)
Bind connection
(symbol) to a connection obtained from specified source, evaluating the body of code in that
context. Return connection to source in the end.
Bind `connection` (symbol) to a connection obtained from specified source, evaluating the body of code in that context. Return connection to source in the end.
(with-new-connection [connection connection-source] & body)
Bind connection
(symbol) to a connection created from specified source, evaluating the body of code in that
context. Return connection to source in the end.
Bind `connection` (symbol) to a connection created from specified source, evaluating the body of code in that context. Return connection to source in the end.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close