Liking cljdoc? Tell your friends :D

garden.util

Utility functions used by Garden.

Utility functions used by Garden.
raw docstring

as-strclj/s

(as-str & args)

Convert a variable number of values into strings.

Convert a variable number of values into strings.
sourceraw docstring

at-import?clj/s

(at-import? x)

True if x is a CSS @import rule.

True if `x` is a CSS `@import` rule.
sourceraw docstring

at-keyframes?clj/s

(at-keyframes? x)

True if x is a CSS @keyframes rule.

True if `x` is a CSS `@keyframes` rule.
sourceraw docstring

at-media?clj/s

(at-media? x)

True if x is a CSS @media rule.

True if `x` is a CSS `@media` rule.
sourceraw docstring

at-rule?clj/s

(at-rule? x)
source

at-supports?clj/s

(at-supports? x)

True if x is a CSS @supports rule.

True if `x` is a CSS `@supports` rule.
sourceraw docstring

averageclj/s

(average n m & more)

Return the average of two or more numbers.

Return the average of two or more numbers.
sourceraw docstring

between?clj/s

(between? n a b)

True if n is a number between a and b.

True if n is a number between a and b.
sourceraw docstring

cartesian-productclj/s

(cartesian-product & seqs)

All the ways to take one item from each sequence.

All the ways to take one item from each sequence.
sourceraw docstring

clipclj/s

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

comma-joinclj/s

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

declaration?clj/s

Alias to hash-map?.

Alias to `hash-map?`.
sourceraw docstring

formatclj/s≠

clj
cljs
(format fmt & args)

Formats a string using goog.string.format.

Formats a string using goog.string.format.
source (clj)source (cljs)raw docstring

hash-map?clj/s

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

int->stringclj/s

(int->string i & [radix])

Convert an integer to a string with optional base.

Convert an integer to a string with optional base.
sourceraw docstring

natural?clj/s

(natural? n)

True if n is a natural number.

True if n is a natural number.
sourceraw docstring

prefixclj/s

(prefix p s)

Attach a CSS style prefix to s.

Attach a CSS style prefix to s.
sourceraw docstring

rule?clj/s

Alias to vector?.

Alias to `vector?`.
sourceraw docstring

space-joinclj/s

(space-join xs)

Return a space separated list of values.

Return a space separated list of values.
sourceraw docstring

string->intclj/s

(string->int s & [radix])

Convert a string to an integer with optional base.

Convert a string to an integer with optional base.
sourceraw docstring

ToStringclj/sprotocol

to-strclj/s

(to-str this)

Convert a value into a string.

Convert a value into a string.
source

vendor-prefixclj/s

(vendor-prefix p s)

Attach a CSS vendor prefix to s.

Attach a CSS vendor prefix to s.
sourceraw docstring

wrap-quotesclj/s

(wrap-quotes s)

Wrap a string with double quotes.

Wrap a string with double quotes.
sourceraw docstring

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

× close