Utility functions used by Garden.
Utility functions used by Garden.
(as-str & args)
Convert a variable number of values into strings.
Convert a variable number of values into strings.
(at-import? x)
True if x
is a CSS @import
rule.
True if `x` is a CSS `@import` rule.
(at-keyframes? x)
True if x
is a CSS @keyframes
rule.
True if `x` is a CSS `@keyframes` rule.
(at-media? x)
True if x
is a CSS @media
rule.
True if `x` is a CSS `@media` rule.
(average n m & more)
Return the average of two or more numbers.
Return the average of two or more numbers.
(between? n a b)
True if n is a number between a and b.
True if n is a number between a and b.
(cartesian-product & seqs)
All the ways to take one item from each sequence.
All the ways to take one item from each sequence.
(clip a b n)
Return a number such that n is no less than a and no more than b.
Return a number such that n is no less than a and no more than b.
(comma-join xs)
Return a comma separated list of values. Subsequences are joined with spaces.
Return a comma separated list of values. Subsequences are joined with spaces.
(format fmt & args)
Formats a string using goog.string.format.
Formats a string using goog.string.format.
(hash-map? x)
True if (map? x)
and x
does not satisfy clojure.lang.IRecord
.
True if `(map? x)` and `x` does not satisfy `clojure.lang.IRecord`.
(int->string i & [radix])
Convert an integer to a string with optional base.
Convert an integer to a string with optional base.
(natural? n)
True if n is a natural number.
True if n is a natural number.
(prefix p s)
Attach a CSS style prefix to s.
Attach a CSS style prefix to s.
(space-join xs)
Return a space separated list of values.
Return a space separated list of values.
(string->int s & [radix])
Convert a string to an integer with optional base.
Convert a string to an integer with optional base.
(to-str this)
Convert a value into a string.
Convert a value into a string.
(vendor-prefix p s)
Attach a CSS vendor prefix to s.
Attach a CSS vendor prefix to s.
(wrap-quotes s)
Wrap a string with double quotes.
Wrap a string with double quotes.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close