Liking cljdoc? Tell your friends :D

fluree.db.util.core


catch*clj/s


cljs-env?clj/s

(cljs-env? env)

Take the &env from a macro, and tell whether we are expanding into cljs.

Take the &env from a macro, and tell whether we are expanding into cljs.
raw docstring

current-time-millisclj/s

(current-time-millis)

Returns current time in epoch milliseonds for closure/script

Returns current time in epoch milliseonds for closure/script
raw docstring

date->millisclj/s

(date->millis date)

Given a date, returns epoch millis if possible.

Given a date, returns epoch millis if possible.
raw docstring

deep-mergeclj/s

(deep-merge v & vs)

email?clj/s

(email? email)

exception?clj/s

(exception? x)

x-platform, returns true if is an execption

x-platform, returns true if is an execption
raw docstring

filter-valsclj/s

(filter-vals pred m)

Filters map k/v pairs dropping any where predicate applied to value is false.

Filters map k/v pairs dropping any where predicate applied to value is false.
raw docstring

if-cljsclj/smacro

(if-cljs then else)

Return then if we are generating cljs code and else for Clojure code. https://groups.google.com/d/msg/clojurescript/iBY5HaQda4A/w1lAQi9_AwsJ

Return then if we are generating cljs code and else for Clojure code.
https://groups.google.com/d/msg/clojurescript/iBY5HaQda4A/w1lAQi9_AwsJ
raw docstring

inclusive-rangeclj/s

(inclusive-range)
(inclusive-range end)
(inclusive-range start end)
(inclusive-range start end step)

Like range, but includes start/end values.

Like range, but includes start/end values.
raw docstring

index-ofclj/s

(index-of coll value)

keyword->strclj/s

(keyword->str k)

Converts a keyword to string. Can safely be called on a string which will return itself.

Converts a keyword to string. Can safely be called on a
string which will return itself.
raw docstring

map-invertclj/s

(map-invert m)

max-integerclj/s


max-longclj/s


min-integerclj/s


min-longclj/s


pred-ident?clj/s

(pred-ident? x)

Tests if an predicate identity two-tuple in form of [pred-name-or-id pred-value]

Tests if an predicate identity two-tuple
in form of [pred-name-or-id pred-value]
raw docstring

random-uuidclj/s

(random-uuid)

some-ofclj/smacro

(some-of)
(some-of x)
(some-of x & more)

str->epoch-msclj/s

(str->epoch-ms time-str)

Takes time as a string and returns an java.time.Instant.

Takes time as a string and returns an java.time.Instant.
raw docstring

str->intclj/s

(str->int s)

Converts string to integer. Assumes you've already verified the string is parsable to an integer.

Converts string to integer. Assumes you've already verified the string is
parsable to an integer.
raw docstring

str->keywordclj/s

(str->keyword s)

Converts a string to a keyword, checking to see if the string starts with a ':', which it strips before converting.

Converts a string to a keyword, checking to see if
the string starts with a ':', which it strips before converting.
raw docstring

subj-ident?clj/s

(subj-ident? x)

Tests if an _id is a numeric or predicate-ident

Tests if an _id is a numeric or predicate-ident
raw docstring

temp-ident?clj/s

(temp-ident? x)

truncclj/s

(trunc s n)

Truncate string s to n characters.

Truncate string s to n characters.
raw docstring

try*clj/smacro

(try* & body)

Like try but supports catch*. catch* is like catch but supports CLJ/CLJS with less boilerplate. In CLJ it catches Exception. In CLJS it catches :default. Use it like this: (try* ... (catch* err (handle-err err))). Also supports an optional finally clause.

Like try but supports catch*. catch* is like catch but supports CLJ/CLJS with
less boilerplate. In CLJ it catches `Exception`. In CLJS it catches `:default`.
Use it like this: `(try* ... (catch* err (handle-err err)))`.
Also supports an optional finally clause.
raw docstring

try-catchallclj/smacro

(try-catchall & body)

A cross-platform variant of try-catch that catches all exceptions. Does not (yet) support finally, and does not need or want an exception class.

A cross-platform variant of try-catch that catches all exceptions.
Does not (yet) support finally, and does not need or want an exception class.
raw docstring

url-decodeclj/s

(url-decode string)
(url-decode string encoding)

url-encodeclj/s

(url-encode string)

without-nilsclj/s

(without-nils m)

Remove all keys from a map that have nil or empty collection values.

Remove all keys from a map that have nil or empty collection values.
raw docstring

zero-padclj/s

(zero-pad x pad)

Zero pads x

Zero pads x
raw docstring

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

× close