Liking cljdoc? Tell your friends :D

keypin.internal

This is an internal namespace. Code here is subject to change.

Utility functions.

This is an internal namespace. Code here is subject to change.

Utility functions.
raw docstring

as-strclj

(as-str x)
source

bad-key-arityclj

(bad-key-arity n k)

Throw ArityException on behalf of key definition when invoked as a function.

Throw ArityException on behalf of key definition when invoked as a function.
sourceraw docstring

expect-argclj

(expect-arg value pred messages)

Validate given value using predicate, which if returns falsy then throws IllegalArgumentException.

Validate given value using predicate, which if returns falsy then throws IllegalArgumentException.
sourceraw docstring

expectedclj

(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.
sourceraw docstring

expected-stateclj

(expected-state expectation found)
(expected-state pred expectation found)

Throw illegal state exception citing expectation and what was found did not match. Optionally accept a predicate fn to test found before throwing the exception.

Throw illegal state exception citing `expectation` and what was `found` did not match. Optionally accept a predicate
fn to test `found` before throwing the exception.
sourceraw docstring

identity-parserclj

(identity-parser _ value)
source

illegal-argclj

(illegal-arg messages)
source

now-millisclj

(now-millis)
(now-millis since)
source

return-trueclj

(return-true & _)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close