Java-only stuff
Java-only stuff
(copy-paths in-path out-path)Copy in-path to out-path, in-path can be URI or filename, out-path should be a file
Copy in-path to out-path, in-path can be URI or filename, out-path should be a file
(download uri file)Common use case for copy-paths
Common use case for copy-paths
(ensure-directory d)Create directory if it doesn't exist (recursively)
Create directory if it doesn't exist (recursively)
(error s & args)Throw a generic Exception with formatted string
Throw a generic Exception with formatted string
(file-delete-recursively fname)Delete a directory and its contents
Delete a directory and its contents
(file-delete-safe fname)Delete a file or directory safely (that is, no error if doesn't exist)
Delete a file or directory safely (that is, no error if doesn't exist)
(file-exists? path)True if file path exists
True if file `path` exists
(join-path & args)Joins the elements passed in into a path
Joins the elements passed in into a path
(local-file url)(local-file url local-file)Make a copy of contens of url in a local temp file or supplied filename
Make a copy of contens of url in a local temp file or supplied filename
(pmap-keys f hashmap)Map f over the kes of hashmap in parallel
Map f over the kes of hashmap in parallel
(pmap-values f hashmap)Map f over the values of hashmap in parallel
Map f over the values of hashmap in parallel
(read-from-file file)Read a form from a file
Read a form from a file
(read-tsv-file f)Given a tsv file with a header line, returns seq where each elt is a map of field names to strings
Given a tsv file with a header line, returns seq where each elt is a map of field names to strings
(schpit f content & options)Like core/spit, but will do something sensible for lazy seqs.
Like core/spit, but will do something sensible for lazy seqs.
(schppit f content & options)Like schpit but will prettyprint.
Like schpit but will prettyprint.
(split-path path)Splits a path delimited with /
Splits a path delimited with /
(start-periodic-process! t f)Start a background process to execute thunk f periodically (every t mssc)
Start a background process to execute thunk f periodically (every t mssc)
(string-search-all string sub & [start])Return a sequence of all positions where sub is found in string
Return a sequence of all positions where sub is found in string
(timing-fn f)Returns a fn that acts like f, but return value is (time result), time in msec]
Returns a fn that acts like f, but return value is (time result), time in msec]
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |