(>_ seed & forms)
shorthand for (as-> x _ ...)
shorthand for (as-> x _ ...)
(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]*)
(deep-check m)
Deeply checks if all values in a map are truthy.
Deeply checks if all values in a map are truthy.
(defn* & form)
Like defn but last argument is bound variadicaly. it defines two functions,
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*
(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 _ ...)).
(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
(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
(linear-interpolation from to steps)
not sure about the name
not sure about the name
(rand-int-between a b)
return an integer between a and b (inclusive).
return an integer between a and b (inclusive).
(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
(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
(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
(t= x & xs)
check if all given args are of same type (tag)
check if all given args are of same type (tag)
(t? sym)
(t? sym e)
check if e is of type (type tag) sym
check if e is of type (type tag) sym
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close