(conj-some coll & xs)
Like conj but nil values are discared from xs.
Like conj but nil values are discared from xs.
(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
(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.
(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.
(ex-info-assoc e & kvs)
Assoc kvs onto e's data map.
Assoc kvs onto e's data map.
(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.
(interrupted?)
(interrupted? _)
Has the current thread been interrupted?
Observing this condition helps future-cancel
effectively cancel future
s.
Has the current thread been interrupted? Observing this condition helps `future-cancel` effectively cancel `future`s.
(normalize-to-unix-path path)
Replace use / as separator and lower-case.
Replace use / as separator and lower-case.
(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
(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?
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close