Liking cljdoc? Tell your friends :D

noon.utils.misc


$clj

($ x f)
source

>_cljmacro

(>_ seed & forms)

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

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

absclj

(abs x)
source

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]*)
sourceraw docstring

copy-fileclj

(copy-file file name)
source

dbgcljmacro

(dbg & xs)
source

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.
sourceraw docstring

deep-findclj

(deep-find data x)
source

deep-mergeclj

(deep-merge x y)
source

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*
sourceraw docstring

defreductioncljmacro

(defreduction name x & xs)
source

distclj

(dist a b)
source

divmodclj

(divmod mod x)
source

ensure-directoryclj

(ensure-directory x)
source

ensure-fileclj

(ensure-file name)
source

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 _ ...)).
sourceraw docstring

factorizeclj

(factorize num)
source

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
sourceraw docstring

flagged?clj

(flagged? flag)
(flagged? flag value)
source

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
sourceraw docstring

hm-leavesclj

(hm-leaves m)
source

hm-nodesclj

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

index-ofclj

(index-of s x)
source

lazy-mapclj

(lazy-map xs f)
source

lazy-primesclj

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

linear-interpolationclj

(linear-interpolation from to steps)

not sure about the name

not sure about the name
sourceraw docstring

map-valsclj

(map-vals f m)
source

negateclj

source

parse-defnclj

(parse-defn [name x & xs])
source

parse-file-pathclj

(parse-file-path n)
source

ppclj

(pp & xs)
source

pretty-strclj

(pretty-str x)
source

probcljmacro

(prob & xs)
source

rand-int-betweenclj

(rand-int-between a b)

return an integer between a and b (inclusive).

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

random-kw?clj

source

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
sourceraw docstring

roundclj

(round x)
source

rounded-divclj

(rounded-div n d)
source

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
sourceraw docstring

serialize-to-base64clj

(serialize-to-base64 obj)
source

snocclj

(snoc l x)

put 'x at the end of 'l

put 'x at the end of 'l
sourceraw docstring

str->keywordclj

(str->keyword name)
source

sumsclj

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

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
sourceraw 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)
sourceraw 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
sourceraw docstring

templatecljmacro

(template x)
source

throw*clj

(throw* & xs)
source

unserialize-from-base64clj

(unserialize-from-base64 s)
source

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

× close