Liking cljdoc? Tell your friends :D

clojure.tools.analyzer.utils


-source-infoclj

(-source-info x env)

Returns the source-info of x

Returns the source-info of x
sourceraw docstring

arglist-for-arityclj

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

boolean?clj

(boolean? x)

Returns true if x is a boolean

Returns true if x is a boolean
sourceraw docstring

butlast+lastclj

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

classifyclj

(classify form)

Returns a keyword describing the form type

Returns a keyword describing the form type
sourceraw docstring

compile-ifcljmacro

(compile-if exp then & else)
source

const-valclj

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

constant?clj

(constant? var)
(constant? var m)

Returns true if the var is a const

Returns true if the var is a const
sourceraw docstring

ctxclj

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

dissoc-envclj

(dissoc-env ast)

Dissocs :env from the ast

Dissocs :env from the ast
sourceraw docstring

dynamic?clj

(dynamic? var)
(dynamic? var m)

Returns true if the var is dynamic

Returns true if the var is dynamic
sourceraw docstring

into!clj

(into! to from)

Like into, but for transients

Like into, but for transients
sourceraw docstring

macro?clj

(macro? var)
(macro? var m)

Returns true if the var maps to a macro

Returns true if the var maps to a macro
sourceraw docstring

mapv'clj

(mapv' f v)

Like mapv, but short-circuits on reduced

Like mapv, but short-circuits on reduced
sourceraw docstring

merge'clj

(merge' m & mms)

Like merge, but uses transients

Like merge, but uses transients
sourceraw docstring

mmergeclj

Same as (fn [m1 m2] (merge-with merge m2 m1))

Same as (fn [m1 m2] (merge-with merge m2 m1))
sourceraw docstring

obj?clj

(obj? x)

Returns true if x implements IObj

Returns true if x implements IObj
sourceraw docstring

private?clj

(private? var)
(private? var m)

Returns true if the var is private

Returns true if the var is private
sourceraw docstring

protocol-node?clj

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

record?clj

(record? x)

Returns true if x is a record

Returns true if x is a record
sourceraw docstring

reference?clj

(reference? x)

Returns true if x implements IReference

Returns true if x implements IReference
sourceraw docstring

regex?clj

(regex? x)

Returns true if x is a regex

Returns true if x is a regex
sourceraw docstring

resolve-nsclj

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

resolve-symclj

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

rseqvclj

(rseqv v)

Same as (comp vec rseq)

Same as (comp vec rseq)
sourceraw docstring

select-keys'clj

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

source-infoclj

(source-info m)

Returns the available source-info keys from a map

Returns the available source-info keys from a map
sourceraw docstring

type?clj

(type? x)

Returns true if x is a type

Returns true if x is a type
sourceraw docstring

update-keysclj

(update-keys m f)

Applies f to all the keys in the map

Applies f to all the keys in the map
sourceraw docstring

update-kvclj

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

update-valsclj

(update-vals m f)

Applies f to all the vals in the map

Applies f to all the vals in the map
sourceraw docstring

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

× close