Liking cljdoc? Tell your friends :D

refactor-nrepl.util


conj-someclj

(conj-some coll & xs)

Like conj but nil values are discared from xs.

Like conj but nil values are discared from xs.
sourceraw docstring

data-file?clj

(data-file? path-or-file)

True of f is named like a clj file but represents data.

E.g. true for data_readers.clj

True of f is named like a clj file but represents data.

E.g. true for data_readers.clj
sourceraw docstring

dir-outside-root-dir?clj

(dir-outside-root-dir? f)

Dirs outside the root dir often represent uninteresting dirs to examine, e.g. Lein checkouts, .gitlibs from deps.edn, or other extraneous source paths which aren't directly related to the project.

By excluding them, one gets better and more accurate performance.

Dirs outside the root dir often represent uninteresting dirs to examine, e.g.
Lein checkouts, .gitlibs from deps.edn, or other extraneous source paths
which aren't directly related to the project.

By excluding them, one gets better and more accurate performance.
sourceraw docstring

dissoc-whenclj

(dissoc-when m pred & ks)

Remove the enumerated keys from m on which pred is truthy.

Remove the enumerated keys from m on which pred is truthy.
sourceraw docstring

ex-info-assocclj

(ex-info-assoc e & kvs)

Assoc kvs onto e's data map.

Assoc kvs onto e's data map.
sourceraw docstring

filter-mapclj

(filter-map pred m)

Return a new map where (pred [k v]) is true for every key-value pair.

Return a new map where (pred [k v]) is true for every key-value pair.
sourceraw docstring

inlined-dependency?clj

(inlined-dependency? candidate)
source

interrupted?clj

(interrupted?)
(interrupted? _)

Has the current thread been interrupted?

Observing this condition helps future-cancel effectively cancel futures.

Has the current thread been interrupted?

Observing this condition helps `future-cancel` effectively cancel `future`s.
sourceraw docstring

maybe-log-exceptionclj

(maybe-log-exception e)
source

normalize-to-unix-pathclj

(normalize-to-unix-path path)

Replace use / as separator and lower-case.

Replace use / as separator and lower-case.
sourceraw docstring

replace-lastclj

(replace-last s match rep)

Replaces the last instance of match from the string s with rep

Replaces the last instance of match from the string s with rep
sourceraw docstring

self-referential?clj

(self-referential? candidate)

Does the argument represent namespace name (or a fully qualified name) that should not be analyzed?

Does the argument represent namespace name (or a fully qualified name) that should not be analyzed?
sourceraw docstring

with-additional-ex-datacljmacro

(with-additional-ex-data kvs & body)

Execute body and if an ex-info is thrown, assoc kvs onto the data map and rethrow.

Execute body and if an ex-info is thrown, assoc kvs onto the data
map and rethrow.
sourceraw docstring

with-suppressed-errorsclj

(with-suppressed-errors f ignore-errors?)

Wraps a predicate f in a try-catch, depending on ignore-errors?.

Typically used for making ingestion of data (read/require/analyze) more robust in face of unconfigured or otherwise problematic source paths.

Wraps a predicate `f` in a try-catch, depending on `ignore-errors?`.

Typically used for making ingestion of data (`read`/`require`/`analyze`) more robust
in face of unconfigured or otherwise problematic source paths.
sourceraw docstring

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

× close