Liking cljdoc? Tell your friends :D

noon.utils.misc


$clj

($ x f)

>_cljmacro

(>_ seed & forms)

shorthand for (as-> x _ ...)

shorthand for (as-> x _ ...)
raw docstring

absclj

(abs x)

all-pathsclj

(all-paths m)
(all-paths x at)

given a nested map, returns a seq of the form: ([path val]*)

given a nested map,
returns a seq of the form:
([path val]*)
raw docstring

copy-fileclj

(copy-file file name)

dbgcljmacro

(dbg & xs)

deep-checkclj

(deep-check m)

Deeply checks if all values in a map are truthy.

Deeply checks if all values in a map are truthy.
raw docstring

deep-findclj

(deep-find data x)

deep-mergeclj

(deep-merge x y)

defn*cljmacro

(defn* & form)

Like defn but last argument is bound variadicaly. it defines two functions,

  • one that binds the last ARGV pattern to variadic arguments.
  • one (postfixed by ) that expect it as a seq. This is somehow analogous to #'list and #'list
Like defn but last argument is bound variadicaly.
it defines two functions,
- one that binds the last ARGV pattern to variadic arguments.
- one (postfixed by *) that expect it as a seq.
This is somehow analogous to #'list and #'list*
raw docstring

defreductioncljmacro

(defreduction name x & xs)

distclj

(dist a b)

divmodclj

(divmod mod x)

ensure-directoryclj

(ensure-directory x)

ensure-fileclj

(ensure-file name)

f_cljmacro

(f_ ret)
(f_ x & xs)

Unary lambda with threading body. arity 1: simple unary lambda with arg bound to _ arity 2+: shorthand for: (fn [x] (as-> x _ ...)).

Unary lambda with threading body.
arity 1: simple unary lambda with arg bound to _
arity 2+: shorthand for: (fn [x] (as-> x _ ...)).
raw docstring

factorizeclj

(factorize num)

flaggedclj

(flagged flag value)
(flagged flag1 flag2 value)
(flagged flag1 flag2 flag3 value)
(flagged flag1 flag2 flag3 flag4 & rest)

add some flags into metadata

add some flags into metadata
raw docstring

flagged?clj

(flagged? flag)
(flagged? flag value)

hm->defsclj

(hm->defs ns hm)

takes an hashmap of type (named x) -> any, and def all in the given ns

takes an hashmap of type (named x) -> any, and def all in the given ns
raw docstring

hm-leavesclj

(hm-leaves m)

hm-nodesclj

(hm-nodes)
(hm-nodes x)
(hm-nodes x from acc)

index-ofclj

(index-of s x)

lazy-mapclj

(lazy-map xs f)

lazy-primesclj

(lazy-primes)
(lazy-primes current known-primes)

linear-interpolationclj

(linear-interpolation from to steps)

not sure about the name

not sure about the name
raw docstring

map-valsclj

(map-vals f m)

negateclj


parse-defnclj

(parse-defn [name x & xs])

parse-file-pathclj

(parse-file-path n)

ppclj

(pp & xs)

pretty-strclj

(pretty-str x)

probcljmacro

(prob & xs)

rand-int-betweenclj

(rand-int-between a b)

return an integer between a and b (inclusive).

return an integer between a and b (inclusive).
raw docstring

random-kw?clj


reductionclj

(reduction f)

Turn a binary fn 'f into a variadic function that use 'f and reduce to produce a result, shortcircuiting on first nil intermediate result

Turn a binary fn 'f into a variadic function that use 'f and reduce to produce a result,
shortcircuiting on first nil intermediate result
raw docstring

roundclj

(round x)

rounded-divclj

(rounded-div n d)

scale-rangeclj

(scale-range in [in-min in-max] [out-min out-max])
(scale-range x in-min in-max out-min out-max)

Scales a given input value within the specified input range to a corresponding value in the specified output range using the formula:

     (out-max - out-min) (x - in-min)

f (x) = -------------------------------- + out-min in-max - in-min

Scales a given input value within the specified input range to a
corresponding value in the specified output range using the formula:

         (out-max - out-min) (x - in-min)
 f (x) = --------------------------------  + out-min
                 in-max - in-min
raw docstring

serialize-to-base64clj

(serialize-to-base64 obj)

snocclj

(snoc l x)

put 'x at the end of 'l

put 'x at the end of 'l
raw docstring

str->keywordclj

(str->keyword name)

sumsclj

(sums total size steps)
(sums total size steps floor ceil)

tclj

(t e)
(t sym e)

artity 2: assign type sym to e arity 1: get the type tag of e

artity 2: assign type sym to e 
arity 1: get the type tag of e
raw docstring

t=clj

(t= x & xs)

check if all given args are of same type (tag)

check if all given args are of same type (tag)
raw docstring

t?clj

(t? sym)
(t? sym e)

check if e is of type (type tag) sym

check if e is of type (type tag) sym
raw docstring

templatecljmacro

(template x)

throw*clj

(throw* & xs)

unserialize-from-base64clj

(unserialize-from-base64 s)

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

× close