(-source-info x env)
Returns the source-info of x
Returns the source-info of x
(arglist-for-arity fn argc)
Takes a fn node and an argc and returns the matching arglist
Takes a fn node and an argc and returns the matching arglist
(boolean? x)
Returns true if x is a boolean
Returns true if x is a boolean
(butlast+last s)
Returns same value as (juxt butlast last), but slightly more efficient since it only traverses the input sequence s once, not twice.
Returns same value as (juxt butlast last), but slightly more efficient since it only traverses the input sequence s once, not twice.
(classify form)
Returns a keyword describing the form type
Returns a keyword describing the form type
(const-val {:keys [form val]})
Returns the value of a constant node (either :quote or :const)
Returns the value of a constant node (either :quote or :const)
(constant? var)
(constant? var m)
Returns true if the var is a const
Returns true if the var is a const
(ctx env ctx)
Returns a copy of the passed environment with :context set to ctx
Returns a copy of the passed environment with :context set to ctx
(dissoc-env ast)
Dissocs :env from the ast
Dissocs :env from the ast
(dynamic? var)
(dynamic? var m)
Returns true if the var is dynamic
Returns true if the var is dynamic
(into! to from)
Like into, but for transients
Like into, but for transients
(macro? var)
(macro? var m)
Returns true if the var maps to a macro
Returns true if the var maps to a macro
(mapv' f v)
Like mapv, but short-circuits on reduced
Like mapv, but short-circuits on reduced
(merge' m & mms)
Like merge, but uses transients
Like merge, but uses transients
Same as (fn [m1 m2] (merge-with merge m2 m1))
Same as (fn [m1 m2] (merge-with merge m2 m1))
(obj? x)
Returns true if x implements IObj
Returns true if x implements IObj
(private? var)
(private? var m)
Returns true if the var is private
Returns true if the var is private
(protocol-node? var)
(protocol-node? var m)
Returns true if the var maps to a protocol function
Returns true if the var maps to a protocol function
(record? x)
Returns true if x is a record
Returns true if x is a record
(reference? x)
Returns true if x implements IReference
Returns true if x implements IReference
(resolve-ns ns-sym {:keys [ns]})
Resolves the ns mapped by the given sym in the global env
Resolves the ns mapped by the given sym in the global env
(resolve-sym sym {:keys [ns] :as env})
Resolves the value mapped by the given sym in the global env
Resolves the value mapped by the given sym in the global env
(select-keys' map keyseq)
Like clojure.core/select-keys, but uses transients and doesn't preserve meta
Like clojure.core/select-keys, but uses transients and doesn't preserve meta
(source-info m)
Returns the available source-info keys from a map
Returns the available source-info keys from a map
(update-keys m f)
Applies f to all the keys in the map
Applies f to all the keys in the map
(update-kv m f)
Applies f to all the keys and vals in the map
Applies f to all the keys and vals in the map
(update-vals m f)
Applies f to all the vals in the map
Applies f to all the vals in the map
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close