All Functions
1598 entries
&
*
Returns the product of nums. (*) returns 1.
macrocljs.core
Returns a regex op that matches zero or more values matching pred. Produces a vector of matches iff there is at least on...
macrocljs.spec
Returns a regex op that matches zero or more values matching pred. Produces a vector of matches iff there is at least on...
macrocljs.spec.alpha
bound in a repl thread to the most recent value printed
valuecljs.core
bound in a repl thread to the second most recent value printed
valuecljs.core
bound in a repl thread to the third most recent value printed
valuecljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.spec
- value
cljs.spec.alpha
- value
cljs.spec
- value
cljs.spec.alpha
A sequence of the supplied command line arguments, or nil if none were supplied
valuecljs.core
If true, compiler will enable spec asserts, which are then subject to runtime control via check-asserts? If false, compi...
valuecljs.spec
If true, compiler will enable spec asserts, which are then subject to runtime control via check-asserts? If false, compi...
valuecljs.spec.alpha
- value
cljs.test
- value
cljs.reader
bound in a repl thread to the most recent exception caught by the repl
valuecljs.core
Runtime environments may provide a way to evaluate ClojureScript forms. Whatever function *eval* is bound to will be pas...
valuecljs.core
Each runtime environment provides various ways to eval JavaScript source. Whatever function *eval-fn* is bound to will b...
valuecljs.js
Arranges to have tap functions executed via the supplied f, a function of no arguments. Returns true if successful, fals...
valuecljs.core
- value
cljs.spec
- value
cljs.spec.alpha
When set to true, output will be flushed whenever a newline is printed. Defaults to true.
valuecljs.core
- value
cljs.spec
- value
cljs.spec.alpha
Manually set the JavaScript global context. Only "window", "self" , and "global" supported.
valuecljs.core
Each runtime environment provides a different way to load a library. Whatever function *load-fn* is bound to will be pas...
valuecljs.js
- value
cljs.js
- value
cljs.core
When compiled for a command-line target, whatever function *main-cli-fn* is set to will be called with the command-line ...
valuecljs.core
Var bound to the current namespace. Only used for bootstrapping.
valuecljs.core
- value
cljs.core
- value
cljs.pprint
The base to use for printing integers and rationals.
valuecljs.pprint
When set to logical true, objects will be printed in a way that preserves their type when read in later. Defaults to fa...
valuecljs.core
Each runtime environment provides a different way to print error output. Whatever function *print-err-fn* is bound to wi...
valuecljs.core
Each runtime environment provides a different way to print output. Whatever function *print-fn* is bound to will be pass...
valuecljs.core
*print-fns-bodies* controls whether functions print their source or only their names.
valuecljs.core
*print-length* controls how many items of each collection the printer will print. If it is bound to logical false, there...
valuecljs.core
*print-level* controls how many levels deep the printer will print nested objects. If it is bound to logical false, ther...
valuecljs.core
If set to logical true, when printing an object, its metadata will also be printed in a form that can be read back by th...
valuecljs.core
The column at which to enter miser style. Depending on the dispatch table, miser style add newlines in more places to tr...
valuecljs.pprint
*print-namespace-maps* controls whether the printer will print namespace map literal syntax. Defaults to false, but the...
valuecljs.core
When set to logical false will drop newlines from printing calls. This is to work around the implicit newlines emitted b...
valuecljs.core
The pretty print dispatch function. Use with-pprint-dispatch or set-pprint-dispatch to modify.
valuecljs.pprint
Bind to true if you want write to use pretty printing
valuecljs.pprint
Print a radix specifier in front of integers and rationals. If *print-base* is 2, 8, or 16, then the radix specifier use...
valuecljs.pprint
When set to logical false, strings and characters will be printed with non-alphanumeric characters converted to the appr...
valuecljs.core
Pretty printing will try to avoid anything going beyond this column. Set it to nil to have pprint let the line be arbitr...
valuecljs.pprint
Don't print namespaces with symbols. This is particularly useful when pretty printing the results of macro expansions
valuecljs.pprint
- value
cljs.spec
- value
cljs.spec.alpha
- value
clojure.browser.repl
- value
cljs.reader
Var bound to the name value of the compiler build :target option. For example, if the compiler build :target is :nodejs,...
valuecljs.core
- value
clojure.browser.net
- value
cljs.core
- value
cljs.core
- value
cljs.core
+
-
If no ys are supplied, returns the negation of x, else subtracts the ys from x and returns the result.
macrocljs.core
- function
cljs.core
Threads the expr through the forms. Inserts x as the second item in the first form, making a list of it if it is not a l...
macrocljs.core
Threads the expr through the forms. Inserts x as the last item in the first form, making a list of it if it is not a lis...
macrocljs.core
- function
cljs.spec.test
- function
cljs.spec.test.alpha
- value
syntax
.
/
If no denominators are supplied, returns 1/numerator, else returns numerator divided by all of the denominators.
macrocljs.core
<
=
>
?
A
- function
cljs.spec
- function
cljs.spec.alpha
Given a check result, returns an abbreviated version suitable for summary use.
functioncljs.spec.test
Given a check result, returns an abbreviated version suitable for summary use.
functioncljs.spec.test.alpha
Returns the absolute value of a.
functioncljs.core
Returns a javascript array, cloned from the passed in array
functioncljs.core
Returns the arc cosine of a, in the range 0.0 to pi. If a is ##NaN or |a|>1 => ##NaN See: https://developer.mozilla.org/...
functioncljs.math
- macro
cljs.reader
Returns the sum of x and y, throws an exception on overflow.
functioncljs.math
Adds f, a fn of one argument, to the tap set. This function will be called with anything sent via tap>. Remember f in or...
functioncljs.core
- function
cljs.core
Adds a watch function to an atom reference. The watch fn must be a fn of 4 args: a key, the reference, its old-state, it...
functioncljs.core
Returns the value at the index/indices. Works on JavaScript arrays.
macrocljs.core
Returns the length of the array. Works on arrays of all types.
macrocljs.core
- function
clojure.browser.event
Takes key+pred pairs, e.g. (s/alt :even even? :small #(< % 42)) Returns a regex op that returns a map entry containing...
macrocljs.spec
Takes key+pred pairs, e.g. (s/alt :even even? :small #(< % 42)) Returns a regex op that returns a map entry containing...
macrocljs.spec.alpha
Atomically sets the metadata for a namespace/var/ref/agent/atom to be: (apply f its-current-meta args) f must be free ...
functioncljs.core
Maps an expression across an array a, using an index named idx, and return value named ret, initialized to a clone of a,...
macrocljs.core
Analyze ClojureScript source. The compiler state will be populated with the results of analyzes. The parameters: state ...
functioncljs.js
- function
cljs.js
- function
cljs.js
Analyze ClojureScript source. The compiler state will be populated with the results of analyzes. The parameters: state ...
functioncljs.js
Returns the immediate and indirect parents of tag, either via a JavaScript type inheritance relationship or a relationsh...
functioncljs.core
Evaluates exprs one at a time, from left to right. If a form returns logical false (nil or false), and returns that valu...
macrocljs.core
Takes predicate/spec-forms, e.g. (s/and even? #(< % 42)) Returns a spec that returns the conformed value. Successive c...
macrocljs.spec
Takes predicate/spec-forms, e.g. (s/and even? #(< % 42)) Returns a spec that returns the conformed value. Successive c...
macrocljs.spec.alpha
Fn returning clojure.test.check.generators/any
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/any
functioncljs.spec.impl.gen
Fn returning clojure.test.check.generators/any-printable
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/any-printable
functioncljs.spec.impl.gen
Returns true if given any argument.
functioncljs.core
Marker protocol
protocolcljs.core
- function
clojure.browser.dom
.adds x to acc and returns acc
functionclojure.core.reducers
Inserts the item as the rightmost child of the node at this loc, without moving
functionclojure.zip
- function
cljs.js
Applies fn f to the argument list formed by prepending intervening arguments to args.
functioncljs.core
Given a regular expression or stringable thing, return a seq of all public definitions in all currently-loaded namespace...
macrocljs.repl
Checks multiple assertions with a template expression. See clojure.template/do-template for an explanation of templates....
macrocljs.test
Reduces an expression across an array a, using an index named idx, and return value named ret, initialized to init, sett...
macrocljs.core
- reader-macro
syntax
Creates a new javascript array. @param {...*} var_args
macrocljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
keyval => key val Returns a new array map with supplied mappings.
macrocljs.core
Create a seq from a JavaScript array.
functioncljs.core
Returns true if x is a JavaScript array.
functioncljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
Binds name to expr, evaluates the first form in the lexical context of that binding, then binds name to that result, rep...
macrocljs.core
Marker protocol indicating an array sequence.
protocolcljs.core
Sets the value at the index/indices. Works on JavaScript arrays. Returns val.
macrocljs.core
Returns the arc sine of an angle, in the range -pi/2 to pi/2. If a is ##NaN or |a|>1 => ##NaN If a is zero => zero with ...
functioncljs.math
Evaluates expr and throws an exception if it does not evaluate to logical true.
macrocljs.core
spec-checking assert expression. Returns x if x is valid? according to spec, else throws an error with explain-data plus...
macrocljs.spec
spec-checking assert expression. Returns x if x is valid? according to spec, else throws an error with explain-data plus...
macrocljs.spec.alpha
Do not call this directly, use 'assert'.
functioncljs.spec
Do not call this directly, use 'assert'.
functioncljs.spec.alpha
Returns generic assertion code for any test, including macros, Java method calls, or isolated symbols.
functioncljs.test
- multimethod
cljs.test
Returns generic assertion code for any functional predicate. The 'expected' argument to 'report' will contains the orig...
functioncljs.test
assoc[iate]. When applied to a map, returns a new map of the same (hashed/sorted) type, that contains the mapping of key...
functioncljs.core
When applied to a transient map, adds mapping of key(s) to val(s). When applied to a transient vector, sets the val at i...
functioncljs.core
Associates a value in a nested associative structure, where ks is a sequence of keys and v is the new value and returns ...
functioncljs.core
Returns true if coll implements IAssociative
functioncljs.core
Wraps body as a CPS function that can be returned from a test to continue asynchronously. Binds done to a function that...
macrocljs.test
Returns whether x implements IAsyncTest.
functioncljs.test
Returns the arc tangent of a, in the range of -pi/2 to pi/2. If a is ##NaN => ##NaN If a is zero => zero with the same s...
functioncljs.math
Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta). Computes ...
functioncljs.math
Creates and returns an Atom with an initial value of x and zero or more options (in any order): :meta metadata-map :va...
functioncljs.core
- value
cljs.core
- function
cljs.js
- reader-macro
syntax
B
Returns the immediate prototype of c
functioncljs.core
Lazy loaded version of clojure.test.check.generators/bind
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/bind
functioncljs.spec.impl.gen
binding => var-symbol init-expr Creates new bindings for the (already-existing) vars, with the supplied initial values,...
macrocljs.core
Bitwise and
macrocljs.core
Bitwise and with complement
macrocljs.core
Clear bit at index n
macrocljs.core
Counts the number of bits set in n
functioncljs.core
Flip bit at index n
macrocljs.core
Bitwise complement
macrocljs.core
Bitwise or
macrocljs.core
Set bit at index n
macrocljs.core
Bitwise shift left
macrocljs.core
Bitwise shift right
macrocljs.core
DEPRECATED: Bitwise shift right with zero fill
macrocljs.core
Test bit at index n
macrocljs.core
Bitwise exclusive or
macrocljs.core
- value
cljs.core
- value
cljs.core
- macro
cljs.core
- value
cljs.core
True if s is nil, empty, or contains only whitespace.
functionclojure.string
Tag a seq of fns to be picked up by run-block as injected continuation. See run-block.
functioncljs.test
Coerce to boolean
functioncljs.core
Fn returning clojure.test.check.generators/boolean
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/boolean
functioncljs.spec.impl.gen
Return true if x is a Boolean
functioncljs.core
- function
cljs.core
Reusable browser REPL bootstrapping. Patches the essential functions in goog.base to support re-loading of namespaces af...
functionclojure.browser.repl
If coll is counted? returns its count, else will count at most the first n elements of coll using its seq
functioncljs.core
- value
cljs.core
Returns true if the node at loc is a branch
functionclojure.zip
EXPERIMENTAL: Returns a JavaScript Proxy ctor fn with the provided key-fn. Invoking the returned fn on ClojureScript map...
functioncljs.proxy
Return a seq of all but the last item in coll, in linear time
functioncljs.core
- macro
cljs.core
- function
cljs.core
C
- macro
cljs.core
Converts first character of the string to upper-case, all other characters to lower-case.
functionclojure.string
Takes an expression, and a set of clauses. Each clause can take the form of either: test-constant result-expr (test-c...
macrocljs.core
- special-form
cljs.core
A transducer which concatenates the contents of each input, which must be a collection, into the reduction.
functioncljs.core
Takes key+pred pairs, e.g. (s/cat :e even? :o odd?) Returns a regex op that matches (all) values in sequence, returnin...
macrocljs.spec
Takes key+pred pairs, e.g. (s/cat :e even? :o odd?) Returns a regex op that matches (all) values in sequence, returnin...
macrocljs.spec.alpha
Returns a generator of a sequence catenated from results of gens, each of which should generate something sequential.
functioncljs.spec.gen.alpha
Returns a generator of a sequence catenated from results of gens, each of which should generate something sequential.
functioncljs.spec.impl.gen
- value
clojure.core.reducers
A high-performance combining fn that yields the catenation of the reduced values. The result is reducible, foldable, seq...
functionclojure.core.reducers
catch-clause => (catch classname name expr*) finally-clause => (finally expr*) Catches and handles JavaScript exceptions...
special-formcljs.core
Returns the cube root of a. If a is ##NaN => ##NaN If a is ##Inf or ##-Inf => a If a is zero => zero with sign matching ...
functioncljs.math
Returns the smallest double greater than or equal to a, and equal to a mathematical integer. If a is ##NaN or ##Inf or #...
functioncljs.math
Coerce to char
functioncljs.core
Fn returning clojure.test.check.generators/char
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/char
functioncljs.spec.impl.gen
Fn returning clojure.test.check.generators/char-alpha
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/char-alpha
functioncljs.spec.impl.gen
Fn returning clojure.test.check.generators/char-alphanumeric
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/char-alphanumeric
functioncljs.spec.impl.gen
Fn returning clojure.test.check.generators/char-ascii
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/char-ascii
functioncljs.spec.impl.gen
Convert char to int
functioncljs.pprint
Returns true if x is a JavaScript string of length one.
functioncljs.core
- value
cljs.core
- reader-macro
syntax
- function
cljs.core
Run generative tests for spec conformance on vars named by sym-or-syms, a symbol or collection of symbols. If sym-or-sym...
macrocljs.spec.test
Run generative tests for spec conformance on vars named by sym-or-syms, a symbol or collection of symbols. If sym-or-sym...
macrocljs.spec.test.alpha
- macro
cljs.spec.test
- macro
cljs.spec.test.alpha
Enable or disable spec asserts that have been compiled with '*compile-asserts*' true. See 'assert'. Initially set to bo...
functioncljs.spec
Enable or disable spec asserts that have been compiled with '*compile-asserts*' true. See 'assert'. Initially set to bo...
functioncljs.spec.alpha
Returns the value set by check-asserts.
functioncljs.spec
Returns the value set by check-asserts.
functioncljs.spec.alpha
Runs generative tests for fn f using spec and opts. See 'check' for options and return.
macrocljs.spec.test
Runs generative tests for fn f using spec and opts. See 'check' for options and return.
macrocljs.spec.test.alpha
- function
cljs.core
Checks a var's specs using test.check. Optional args are passed through to test.check/quick-check: num-tests numb...
functioncljs.spec.test
Given an opts map as per check, returns the set of syms that can be checked.
macrocljs.spec.test
Given an opts map as per check, returns the set of syms that can be checked.
macrocljs.spec.test.alpha
- function
cljs.spec.test
- function
cljs.spec.test.alpha
Returns a seq of the children of node at loc, which must be a branch
functionclojure.zip
Lazy loaded version of clojure.test.check.generators/choose
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/choose
functioncljs.spec.impl.gen
- function
cljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
- value
cljs.core
- function
cljs.core
Return true if x satisfies IChunkedSeq.
functioncljs.core
- value
cljs.core
- value
cljs.core
An implementation of a Common Lisp compatible format function. cl-format formats its arguments to an output stream or st...
functioncljs.pprint
- function
cljs.test
- function
clojure.browser.dom
Recursively transforms ClojureScript values to JavaScript. sets/vectors/lists become Arrays, Keywords and Symbol become ...
functioncljs.core
Clone the supplied value which must implement ICloneable.
functioncljs.core
Return true if x implements ICloneable protocol.
functioncljs.core
The pretty print dispatch function for pretty printing Clojure code.
multimethodcljs.pprint
- macro
cljs.core
- macro
cljs.core
- macro
cljs.core
- macro
cljs.core
returns a predicate function that checks *coll-check-limit* items in a collection with pred
functioncljs.spec
returns a function of no args that returns a generator of collections of items conforming to pred, with the same shape a...
functioncljs.spec
Returns a spec for a collection of items satisfying pred. Unlike generator will fill an empty init-coll. Same options a...
macrocljs.spec
Returns a spec for a collection of items satisfying pred. Unlike generator will fill an empty init-coll. Same options a...
macrocljs.spec.alpha
Returns true if x satisfies ICollection
functioncljs.core
- protocol
clojure.core.reducers
- reader-macro
syntax
Ignores body, yields nil
macrocljs.core
- reader-macro
syntax
Takes a set of functions and returns a fn that is the composition of those fns. The returned fn takes a variable number...
functioncljs.core
Returns an JavaScript compatible comparator based upon pred.
functioncljs.core
Comparator. Returns a negative number, zero, or a positive number when x is logically 'less than', 'equal to', or 'grea...
functioncljs.core
Atomically sets the value of atom to newval if and only if the current value of the atom is equal to oldval. Returns tru...
functioncljs.core
Compile ClojureScript source into JavaScript. The parameters: state (atom) the compiler state source (string) the ...
functioncljs.js
- function
cljs.js
Compile ClojureScript source into JavaScript. The parameters: state (atom) the compiler state source (string) the ...
functioncljs.js
Takes a fn f and returns a fn that takes the same arguments as f, has the same effects, if any, and returns the opposite...
functioncljs.core
Takes a reducing function f of 2 args and returns a fn suitable for transduce by adding an arity-1 signature that calls ...
functioncljs.core
Composes two fixture functions, creating a new fixture function that combines their behavior. NOTE: Incompatible with m...
functioncljs.test
Returns a lazy seq representing the concatenation of the elements in the supplied colls.
functioncljs.core
Takes a set of test/expr pairs. It evaluates each test one at a time. If a test returns logical true, cond evaluates an...
macrocljs.core
- reader-macro
syntax
Takes an expression and a set of test/form pairs. Threads expr (via ->) through each form for which the corresponding te...
macrocljs.core
Takes an expression and a set of test/form pairs. Threads expr (via ->>) through each form for which the corresponding t...
macrocljs.core
- reader-macro
syntax
Takes a binary predicate, an expression, and a set of clauses. Each clause can take the form of either: test-expr resul...
macrocljs.core
Given a spec and a value, returns :clojure.spec/invalid if value does not match spec, else the (possibly destructured) v...
functioncljs.spec
Given a spec and a value, returns :cljs.spec.alpha/invalid if value does not match spec, else the (possibly destructured...
functioncljs.spec.alpha
takes a predicate function with the semantics of conform i.e. it should return either a (possibly converted) value or :c...
macrocljs.spec
takes a predicate function with the semantics of conform i.e. it should return either a (possibly converted) value or :c...
macrocljs.spec.alpha
conj[oin]. Returns a new collection with the xs 'added'. (conj nil item) returns (item). (conj coll) returns coll. (conj...
functioncljs.core
Adds val to the transient collection, and return tcoll. The 'addition' may happen at different 'places' depending on the...
functioncljs.core
Connects to a REPL server from an HTML document. After the connection is made, the REPL will evaluate forms in the conte...
functionclojure.browser.repl
Returns a new seq where x is the first element and coll is the rest.
functioncljs.core
- value
cljs.core
Returns a function that takes any number of arguments and returns x.
functioncljs.core
Returns true if key is present in the given collection, otherwise returns false. Note that for numerically indexed coll...
functioncljs.core
- macro
cljs.core
Returns a double with the magnitude of the first argument and the sign of the second. See: https://docs.oracle.com/javas...
functioncljs.math
Returns the cosine of an angle. If a is ##NaN, ##-Inf, ##Inf => ##NaN See: https://developer.mozilla.org/en-US/docs/Web/...
functioncljs.math
Returns the hyperbolic cosine of x, (e^x + e^-x)/2. If x is ##NaN => ##NaN If x is ##Inf or ##-Inf => ##Inf If x is zero...
functioncljs.math
Returns the number of items in the collection. (count nil) returns 0. Also works on strings, arrays, and Maps
functioncljs.core
Returns true if coll implements count in constant time
functioncljs.core
Create a new namespace named by the symbol. Bootstrap only.
functioncljs.core
- value
cljs.core
Returns a lazy (infinite!) sequence of repetitions of the items in coll.
functioncljs.core
D
- protocol
clojure.core.protocols
Attempts to return x as data. datafy will return the value of clojure.protocols/datafy. If the value has been transforme...
functionclojure.datafy
- function
cljs.js
Returns a number one less than num.
macrocljs.core
defs the supplied var names with no bindings, useful for making forward declarations.
macrocljs.core
Returns a decremented by 1, throws ArithmeticException on overflow.
functioncljs.math
Returns a lazy sequence removing consecutive duplicates in coll. Returns a transducer when no collection is provided.
functioncljs.core
Creates and interns a global var with the name of symbol in the current namespace (*ns*) or locates such a var if it alr...
special-formcljs.core
Given a namespace-qualified keyword or resolveable symbol k, and a spec, spec-name, predicate or regex-op makes an entry...
macrocljs.spec
Given a namespace-qualified keyword or resolveable symbol k, and a spec, spec-name, predicate or regex-op makes an entry...
macrocljs.spec.alpha
Given a multimethod, return its default-dispatch-val.
functioncljs.core
Like defn, but the resulting function name is declared as a macro and will be used as a macro by the compiler when it is...
macrocljs.core
Creates and installs a new method of multimethod associated with dispatch-value.
macrocljs.core
Creates a new multimethod with the associated dispatch function. The docstring and attribute-map are optional. Options ...
macrocljs.core
Same as (def name (core/fn [params* ] exprs*)) or (def name (core/fn ([params* ] exprs*)+)) with any doc-string or attr...
macrocljs.core
same as defn, yielding non-public def
macrocljs.core
defs name to have the root value of init iff the named var has no root value, else init is unevaluated
macrocljs.core
A protocol is a named set of named methods and their signatures: (defprotocol AProtocolName ;optional doc string "A...
macrocljs.core
(defrecord name [fields*] options* specs*) Currently there are no options. Each spec consists of a protocol or interf...
macrocljs.core
- special-form
cljs.core
Defines a test function with no arguments. Test functions may call other tests, so tests may be composed. If you compo...
macrocljs.test
(deftype name [fields*] options* specs*) Currently there are no options. Each spec consists of a protocol or interfac...
macrocljs.core
- macro
cljs.pprint
- special-form
cljs.core
- value
cljs.core
Takes a body of expressions and yields a Delay object that will invoke the body only the first time it is forced (with f...
macrocljs.core
given body that returns a generator, returns a generator that delegates to that, but delays creation until used.
macrocljs.spec.gen.alpha
given body that returns a generator, returns a generator that delegates to that, but delays creation until used.
macrocljs.spec.impl.gen
returns true if x is a Delay created with delay
functioncljs.core
- function
cljs.core
- value
cljs.core
- value
cljs.core
Also reader macro: @var/@atom/@delay. Returns the most-recently-committed value of ref. When applied to a var or atom, r...
functioncljs.core
- reader-macro
syntax
- function
cljs.reader
- function
cljs.reader
Establishes a parent/child relationship between parent and tag. Parent must be a namespace-qualified symbol or keyword a...
functioncljs.core
Returns the immediate and indirect children of tag, through a relationship established via derive. h must be a hierarchy...
functioncljs.core
returns an abbreviated description of the spec as data
functioncljs.spec
returns an abbreviated description of the spec as data
functioncljs.spec.alpha
- function
cljs.reader
Recursively compares a and b, returning a tuple of [things-only-in-a things-only-in-b things-in-both]. Comparison rules:...
functionclojure.data
Implementation detail. Subject to change.
protocolclojure.data
Return a set that is the first set without elements of the remaining sets
functionclojure.set
Prints a sorted directory of public vars in a namespace
macrocljs.repl
disj[oin]. Returns a new set of the same (hashed/sorted) type, that does not contain key(s).
functioncljs.core
disj[oin]. Returns a transient set of the same (hashed/sorted) type, that does not contain key(s).
functioncljs.core
- reader-macro
syntax
- function
clojure.browser.event
Given a multimethod, return its dispatch-fn.
functioncljs.core
- function
cljs.reader
dissoc[iate]. Returns a new map of the same (hashed/sorted) type, that does not contain a mapping for key(s).
functioncljs.core
Returns a transient map that doesn't contain a mapping for key(s).
functioncljs.core
Returns a lazy sequence of the elements of coll with duplicates removed. Returns a stateful transducer when no collectio...
functioncljs.core
- function
cljs.spec.test
- function
cljs.spec.test.alpha
Returns true if no two of the arguments are =
functioncljs.core
- macro
cljs.core
Evaluates the expressions in order and returns the value of the last. If no expressions are supplied, returns nil.
special-formcljs.core
- function
cljs.test
When lazy sequences are produced via functions that have side effects, any effects other than those needed to produce th...
functioncljs.core
Prints documentation for a var or special form given its name, or for a spec if given a keyword
macrocljs.repl
Queries the reflection api with a fully qualified symbol, then prints documentation information at the repl.
functionclojure.reflect
- protocol
clojure.browser.dom
When lazy sequences are produced via functions that have side effects, any effects other than those needed to produce th...
functioncljs.core
Repeatedly executes body (presumably for side-effects) with bindings and filtering as provided by "for". Does not retai...
macrocljs.core
- reader-macro
syntax
bindings => name n Repeatedly executes body (presumably for side-effects) with name bound to integers from 0 through n-...
macrocljs.core
Evaluates x then calls all of the methods and functions with the value of x supplied at the front of the given arguments...
macrocljs.core
- macro
cljs.core
Fn returning clojure.test.check.generators/double
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/double
functioncljs.spec.impl.gen
Lazy loaded version of clojure.test.check.generators/double*
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/double*
functioncljs.spec.impl.gen
Creates an array of doubles. Does not coerce array, provided for compatibility with Clojure.
functioncljs.core
Specs a 64-bit floating point number. Options: :infinite? - whether +/- infinity allowed (default true) :NaN? - ...
macrocljs.spec
Specs a 64-bit floating point number. Options: :infinite? - whether +/- infinity allowed (default true) :NaN? - ...
macrocljs.spec.alpha
Returns true for JavaScript numbers, false otherwise.
functioncljs.core
- function
cljs.core
Returns the loc of the leftmost child of the node at this loc, or nil if no children
functionclojure.zip
Returns a laziness-preserving sequence of all but the first n items in coll. Returns a stateful transducer when no colle...
functioncljs.core
Elides the first n values from the reduction of coll.
functionclojure.core.reducers
Return a lazy sequence of all but the last n (default 1) items in coll
functioncljs.core
Returns a lazy sequence of the items in coll starting from the first item for which (pred item) returns logical false. ...
functioncljs.core
- macro
cljs.js
- macro
cljs.spec.gen.alpha
- macro
cljs.spec.impl.gen
E
Constant for Euler's number e, the base for natural logarithms. See: https://developer.mozilla.org/en-US/docs/Web/JavaSc...
valuecljs.math
Replaces the node at this loc with the value of (f node args)
functionclojure.zip
Returns a reducible/iterable application of the transducers to the items in coll. Transducers are applied in order as if...
functioncljs.core
- value
cljs.core
- function
clojure.browser.dom
Lazy loaded version of clojure.test.check.generators/elements
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/elements
functioncljs.spec.impl.gen
- value
cljs.core
Returns an empty collection of the same category as coll, or nil
functioncljs.core
Generates a testing environment with a reporter. (empty-env) - uses the :cljs.test/default reporter. (empty-env :cljs.te...
functioncljs.test
Construct an empty compiler state. Required to invoke analyze, compile, eval and eval-str.
functioncljs.js
Returns true if coll has no items. To check the emptiness of a seq, please use the idiom (seq x) rather than (not (empty...
functioncljs.core
- value
cljs.core
Set *print-fn* to console.log
functioncljs.core
- function
cljs.nodejs
Returns true if loc represents the end of a depth-first walk
functionclojure.zip
True if s ends with substr.
functionclojure.string
Coerce the argument to a dom element if possible.
functionclojure.browser.dom
If x is already reduced?, returns it, else returns (reduced x)
functioncljs.core
- function
cljs.core
- value
cljs.core
Given a symbol naming an ns, or a collection of such symbols, returns the set of all symbols naming vars in those nses.
macrocljs.spec.test
Given a symbol naming an ns, or a collection of such symbols, returns the set of all symbols naming vars in those nses.
macrocljs.spec.test.alpha
Implementation detail. Subject to change.
protocolclojure.data
Test map equivalence. Returns true if x equals y, otherwise returns false.
functioncljs.core
- macro
cljs.repl
Constructs a data representation for a Error with keys: :cause - root cause message :phase - error phase :via - cause...
functioncljs.repl
- function
cljs.repl
- function
cljs.core
- macro
cljs.core
Return a ES2015+ compatible iterator for coll.
functioncljs.core
Given an ES2015+ compatible iterator return a seq.
functioncljs.core
- function
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
Return a new string, using cmap to escape each character ch from s as follows: If (cmap ch) is nil, append ch to the ne...
functionclojure.string
- function
cljs.reader
- function
cljs.reader
Evaluates the form data structure (not text!) and returns the result. Delegates to cljs.core/*eval*. Intended for use in...
functioncljs.core
Evaluate a single ClojureScript form. The parameters: state (atom) the compiler state form (s-expr) the ClojureScr...
functioncljs.js
- reader-macro
syntax
- function
cljs.js
Evalute ClojureScript source given as a string. The parameters: state (atom) the compiler state source (string) th...
functioncljs.js
- function
cljs.js
Process a single block of JavaScript received from the server
functionclojure.browser.repl
Returns true if n is even, throws an exception if n is not an integer
functioncljs.core
- value
clojure.browser.net
- protocol
clojure.browser.event
takes a pred and validates collection elements against that pred. Note that 'every' does not do exhaustive checking, ra...
macrocljs.spec
takes a pred and validates collection elements against that pred. Note that 'every' does not do exhaustive checking, ra...
macrocljs.spec.alpha
like 'every' but takes separate key and val preds and works on associative collections. Same options as 'every', :into ...
macrocljs.spec
like 'every' but takes separate key and val preds and works on associative collections. Same options as 'every', :into ...
macrocljs.spec.alpha
Takes a set of predicates and returns a function f that returns true if all of its composing predicates return a logical...
functioncljs.core
Returns true if (pred x) is logical true for every x in coll, else false.
functioncljs.core
Returns exception cause (an Error / ExceptionInfo) if ex is an ExceptionInfo. Otherwise returns nil.
functioncljs.core
Returns exception data (a map) if ex is an ExceptionInfo. Otherwise returns nil.
functioncljs.core
Create an instance of ExceptionInfo, an Error type that carries a map of additional data.
functioncljs.core
Returns the message attached to the given Error / ExceptionInfo object. For non-Errors returns nil.
functioncljs.core
Returns a string from exception data, as produced by ex-triage. The first line summarizes the exception phase and locati...
functioncljs.repl
Returns an analysis of the phase, error, cause, and location of an error that occurred based on Throwable data, as retur...
functioncljs.repl
- value
cljs.core
generates a number (default 10) of values compatible with spec and maps conform over them, returning a sequence of [val ...
functioncljs.spec
generates a number (default 10) of values compatible with spec and maps conform over them, returning a sequence of [val ...
functioncljs.spec.alpha
exercises the fn named by sym (a symbol) by applying it to n (default 10) generated samples of its args spec. When fspec...
macrocljs.spec
exercises the fn named by sym (a symbol) by applying it to n (default 10) generated samples of its args spec. When fspec...
macrocljs.spec.alpha
Return true if argument exists, analogous to usage of typeof operator in JavaScript.
macrocljs.core
Returns Euler's number e raised to the power of a. If a is ##NaN => ##NaN If a is ##Inf => ##Inf If a is ##-Inf => +0.0 ...
functioncljs.math
Given a spec and a value that fails to conform, prints an explanation to *out*.
functioncljs.spec
Given a spec and a value that fails to conform, prints an explanation to *out*.
functioncljs.spec.alpha
Given a spec and a value x which ought to conform, returns nil if x conforms, else a map with at least the key ::problem...
functioncljs.spec
Given a spec and a value x which ought to conform, returns nil if x conforms, else a map with at least the key ::problem...
functioncljs.spec.alpha
- function
cljs.spec
- function
cljs.spec.alpha
Prints explanation data (per 'explain-data') to *out* using the printer in *explain-out*, by default explain-printer.
functioncljs.spec
Prints explanation data (per 'explain-data') to *out* using the printer in *explain-out*, by default explain-printer.
functioncljs.spec.alpha
Default printer for explain-data. nil indicates a successful validation.
functioncljs.spec
Default printer for explain-data. nil indicates a successful validation.
functioncljs.spec.alpha
Given a spec and a value that fails to conform, returns an explanation as a string.
functioncljs.spec
Given a spec and a value that fails to conform, returns an explanation as a string.
functioncljs.spec.alpha
Returns e^x - 1. Near 0, expm1(x)+1 is more accurate to e^x than exp(x). If x is ##NaN => ##NaN If x is ##Inf => #Inf If...
functioncljs.math
- function
clojure.browser.event
Useful when you want to provide several implementations of the same protocol all at once. Takes a single protocol and th...
macrocljs.core
Extend a type to a series of protocols. Useful when you are supplying the definitions explicitly inline. Propagates the ...
macrocljs.core
F
- value
syntax
Returns true if x is the value false, false otherwise.
macrocljs.core
Takes a symbol naming a function, and one or more of the following: :args A regex spec for the function arguments as th...
macrocljs.spec
Takes a symbol naming a function, and one or more of the following: :args A regex spec for the function arguments as th...
macrocljs.spec.alpha
Same as (first (first x))
functioncljs.core
- function
cljs.js
- function
cljs.test
Returns a lazy sequence of the items in coll for which (pred item) returns logical true. pred must be free of side-effec...
functioncljs.core
Retains values in the reduction of coll for which (pred val) returns logical true. Foldable.
functionclojure.core.reducers
Returns a vector of the items in coll for which (pred item) returns logical true. pred must be free of side-effects.
functioncljs.core
catch-clause => (catch classname name expr*) finally-clause => (finally expr*) Catches and handles JavaScript exceptions...
special-formcljs.core
Returns the map entry for key, or nil if key not present.
functioncljs.core
Prints documentation for any var whose documentation or name contains a match for re-string-or-pattern
macrocljs.repl
Returns the macros namespace named by the symbol or nil if it doesn't exist. Bootstrap only.
functioncljs.core
Returns the namespace named by the symbol or nil if it doesn't exist. Bootstrap only.
functioncljs.core
Bootstrap only.
functioncljs.core
- function
clojure.browser.event
Returns the first item in the collection. Calls seq on its argument. If coll is nil, returns nil.
functioncljs.core
maps f over coll and concatenates the results. Thus function f should return a collection. Returns a transducer when n...
functioncljs.core
Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat se...
functioncljs.core
Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat ...
functionclojure.core.reducers
- macro
cljs.core
- value
cljs.reader
Returns true for JavaScript numbers, false otherwise.
functioncljs.core
Returns true if n is an float.
functioncljs.pprint
- function
cljs.core
Returns the largest double less than or equal to a, and equal to a mathematical integer. If a is ##NaN or ##Inf or ##-In...
functioncljs.math
Integer division that rounds to negative infinity (as opposed to zero). See: https://docs.oracle.com/javase/8/docs/api/j...
functioncljs.math
Integer modulus x - (floorDiv(x, y) * y). Sign matches y and is in the range -|y| < r < |y|. See: https://docs.oracle.co...
functioncljs.math
- function
cljs.core
- function
clojure.browser.repl
Lazy loaded version of clojure.test.check.generators/fmap
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/fmap
functioncljs.spec.impl.gen
params => positional-params* , or positional-params* & next-param positional-param => binding-form next-param => binding...
macrocljs.core
Marker protocol
protocolcljs.core
- special-form
cljs.core
Returns :args/:ret/:fn map of specs for var or symbol v.
functioncljs.spec
- function
cljs.spec.alpha
Return true if f is a JavaScript function or satisfies the Fn protocol.
functioncljs.core
Same as (first (next x))
functioncljs.core
Takes a function f, and returns a function that calls f, replacing a nil first argument to f with the supplied value x. ...
functioncljs.core
Reduces a collection using a (potentially parallel) reduce-combine strategy. The collection is partitioned into groups o...
functionclojure.core.reducers
Equivalent to (fold cat append! coll)
functionclojure.core.reducers
Given a foldable collection, and a transformation function xf, returns a foldable collection, where any supplied reducin...
functionclojure.core.reducers
List comprehension. Takes a vector of one or more binding-form/collection-expr pairs, each followed by zero or more mo...
macrocljs.core
Dynamically loaded clojure.test.check.properties/for-all*.
functioncljs.spec.gen.alpha
Dynamically loaded clojure.test.check.properties/for-all*.
functioncljs.spec.impl.gen
If x is a Delay, returns the (possibly cached) value of its expression, else returns x
functioncljs.core
returns the spec as data
functioncljs.spec
returns the spec as data
functioncljs.spec.alpha
Formats a string using goog.string.format.
functioncljs.core
Makes a function which can directly run format-in. The function is fn [stream & args] ... and returns nil unless the str...
macrocljs.pprint
Makes a function which can directly run format-in. The function is fn [& args] ... and returns nil. This version of the ...
macrocljs.pprint
Returns a map from distinct items in coll to the number of times they appear.
functioncljs.core
Lazy loaded version of clojure.test.check.generators/frequency
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/frequency
functioncljs.spec.impl.gen
Make a newline if *out* is not already at the beginning of the line. If *out* is not a pretty writer (which keeps track ...
functioncljs.pprint
takes :args :ret and (optional) :fn kwargs whose values are preds and returns a spec whose conform/explain take a fn and...
macrocljs.spec
takes :args :ret and (optional) :fn kwargs whose values are preds and returns a spec whose conform/explain take a fn and...
macrocljs.spec.alpha
- reader-macro
syntax
Returns true if argument is a function or a symbol that resolves to a function (not a macro).
functioncljs.test
G
Given a spec, returns the generator for it, or throws if none can be constructed. Optionally an overrides map can be pro...
functioncljs.spec
Given a spec, returns the generator for it, or throws if none can be constructed. Optionally an overrides map can be pro...
functioncljs.spec.alpha
- macro
cljs.core
- macro
cljs.core
Given a predicate, returns a built-in generator if one exists.
functioncljs.spec.gen.alpha
Given a predicate, returns a built-in generator if one exists.
functioncljs.spec.impl.gen
Generate a single value using generator.
functioncljs.spec.gen.alpha
Generate a single value using generator.
functioncljs.spec.impl.gen
Returns a new symbol with a unique name. If a prefix string is supplied, the name is prefix# where # is some unique numb...
functioncljs.core
- value
cljs.core
Returns the value mapped to key, not-found or nil if key not present in associative collection, set, string, array, or I...
functioncljs.core
- function
cljs.test
- function
cljs.test
- function
clojure.browser.dom
- function
cljs.spec.test
- function
cljs.spec.test.alpha
Returns the exponent of d. If d is ##NaN, ##Inf, ##-Inf => max_Float64_exponent + 1 If d is zero or subnormal => min_Flo...
functioncljs.math
- function
cljs.spec.test
- function
cljs.spec.test.alpha
Returns the value in a nested associative structure, where ks is a sequence of keys. Returns nil if the key is not prese...
functioncljs.core
- function
clojure.browser.event
Given a multimethod and a dispatch value, returns the dispatch fn that would apply to that value, or nil if none apply a...
functioncljs.core
Returns the IWriter passed in wrapped in a pretty writer proxy, unless it's already a pretty writer. Generally, it is un...
functioncljs.pprint
Returns spec registered for keyword/symbol/var k, or nil.
functioncljs.spec
Returns spec registered for keyword/symbol/var k, or nil.
functioncljs.spec.alpha
- function
cljs.spec.test
- function
cljs.spec.test.alpha
- function
clojure.browser.repl
Gets the validator-fn for a var/ref/agent/atom.
functioncljs.core
Get the value of an element.
functionclojure.browser.dom
Get the value of the field a named by the argument (which should be a keyword).
macrocljs.pprint
Defines a var using `goog.define`. Passed default value must be string, number or boolean. Default value can be overrid...
macrocljs.core
Returns a map of the elements of coll keyed by the result of f on each element. The value at each key will be a vector o...
functioncljs.core
H
Returns a transducer that ends transduction when pred returns true for an input. When retf is supplied it must be a fn o...
functioncljs.core
- function
clojure.browser.event
Returns the hash code of its argument. Note this is the hash code consistent with =.
functioncljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
keyval => key val Returns a new hash map with supplied mappings.
macrocljs.core
Lazy loaded version of clojure.test.check.generators/hash-map
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/hash-map
functioncljs.spec.impl.gen
:lite-mode version of hash-map, not intended to be used directly.
functioncljs.core
Returns the hash code, consistent with =, for an external ordered collection implementing Iterable. See http://clojure.o...
functioncljs.core
Returns a new hash set with supplied keys. Any equal keys are handled as if by repeated uses of conj.
macrocljs.core
- function
cljs.core
- function
cljs.core
Returns the hash code, consistent with =, for an external unordered collection implementing Iterable. For maps, the iter...
functioncljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- function
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
clojure.browser.repl
- function
clojure.browser.dom
Returns sqrt(x^2 + y^2) without intermediate underflow or overflow. If x or y is ##Inf or ##-Inf => ##Inf If x or y is #...
functioncljs.math
I
Protocol for adding associativity to collections.
protocolcljs.core
Marker protocol denoting CPS function to begin asynchronous testing.
protocolcljs.test
Marker protocol indicating an atom.
protocolcljs.core
Protocol for accessing the items of a chunk.
protocolcljs.core
Protocol for accessing the chunks of a collection.
protocolcljs.core
Protocol for accessing a collection as sequential chunks.
protocolcljs.core
Protocol for cloning a value.
protocolcljs.core
Protocol for adding to a collection.
protocolcljs.core
Protocol for values that can be compared.
protocolcljs.core
- protocol
clojure.browser.net
Protocol for adding the ability to count a collection in constant time.
protocolcljs.core
- protocol
clojure.browser.net
Return true if x is a symbol or keyword
functioncljs.core
Tests if 2 arguments are the same object
macrocljs.core
Returns its argument.
functioncljs.core
Protocol for adding dereference functionality to a reference.
protocolcljs.core
- protocol
cljs.core
Protocol for persistent or algorithmically defined collections to provide a means of dropping N items that is more eff...
protocolcljs.core
Protocol for collections which can transformed to transients.
protocolcljs.core
Returns the remainder per IEEE 754 such that remainder = dividend - divisor * n where n is the integer closest to the e...
functioncljs.math
Protocol for creating an empty collection.
protocolcljs.core
- protocol
cljs.core
- protocol
cljs.core
Protocol for adding value comparison functionality to a type.
protocolcljs.core
- protocol
clojure.browser.event
Evaluates test. If not the singular values nil or false, evaluates and yields then, otherwise, evaluates and yields else...
special-formcljs.core
bindings => binding-form test If test is true, evaluates then with binding-form bound to the value of test, if not, yi...
macrocljs.core
Evaluates test. If logical false, evaluates and returns then expr, otherwise else expr, if supplied, else nil.
macrocljs.core
bindings => binding-form test If test is not nil, evaluates then with binding-form bound to the value of test, if not, ...
macrocljs.core
Protocol for implementing entry finding in collections.
protocolcljs.core
Returns true if coll implements IFind
functioncljs.core
Protocol for adding the ability to invoke an object as a function. For example, a vector can also be used to look up a...
protocolcljs.core
Returns true if f returns true for fn? or satisfies IFn.
functioncljs.core
- reader-macro
syntax
Protocol for adding hashing functionality to a type.
protocolcljs.core
Protocol for collections to provide indexed-based access to their items.
protocolcljs.core
Protocol for iterating over a collection.
protocolcljs.core
Protocol for associative types that can reduce themselves via a function of key and val. Called by cljs.core/reduce-kv...
protocolcljs.core
Marker interface indicating a persistent list
protocolcljs.core
Protocol for looking up a value in a data structure.
protocolcljs.core
Protocol for adding mapping functionality to collections.
protocolcljs.core
Protocol for examining a map entry.
protocolcljs.core
Protocol for accessing the metadata of an object.
protocolcljs.core
EXPERIMENTAL
macrocljs.core
import-list => (closure-namespace constructor-name-symbols*) For each name in constructor-name-symbols, adds a mapping ...
macrocljs.core
- macro
cljs.core
- protocol
cljs.core
Sets *cljs-ns* to the namespace named by the symbol, creating it if needed.
special-formcljs.core
Protocol for adding a name.
protocolcljs.core
Returns a number one greater than num.
macrocljs.core
Increments the named counter in *report-counters*, a ref to a map. Does nothing if *report-counters* is nil.
functioncljs.test
True if s includes substr.
functionclojure.string
Returns a incremented by 1, throws ArithmeticException on overflow.
functioncljs.math
Returns a map of the distinct values of ks in the xrel mapped to a set of the maps in xrel with the corresponding values...
functionclojure.set
Return index of value (string or char) in s, optionally searching forward from from-index or nil if not found.
functionclojure.string
Returns true if coll implements nth in constant time
functioncljs.core
- value
cljs.core
- value
cljs.core
Protocol for accessing the next items of a collection.
protocolcljs.core
- value
syntax
Returns true for Infinity and -Infinity values.
functioncljs.core
- function
clojure.browser.dom
Inserts the item as the leftmost child of the node at this loc, without moving
functionclojure.zip
Inserts the item as the left sibling of the node at this loc, without moving
functionclojure.zip
Inserts the item as the right sibling of the node at this loc, without moving
functionclojure.zip
- protocol
cljs.core
Returns a spec that validates insts in the range from start (inclusive) to end (exclusive).
macrocljs.spec
Returns a spec that validates insts in the range from start (inclusive) to end (exclusive).
macrocljs.spec.alpha
Return true if inst at or after start and before end
functioncljs.spec
Return true if inst at or after start and before end
functioncljs.spec.alpha
- reader-macro
syntax
Return the number of milliseconds since January 1, 1970, 00:00:00 GMT
functioncljs.core
Return true if x satisfies Inst
functioncljs.core
Evaluates x and tests if it is an instance of the type c. Returns true or false
macrocljs.core
Instruments the var at v, a var or symbol, to check specs registered with fdef. Wraps the fn at v to check :args spec, i...
macrocljs.spec
Instruments the vars named by sym-or-syms, a symbol or collection of symbols, or all instrumentable vars if sym-or-syms ...
macrocljs.spec.test
Instruments the vars named by sym-or-syms, a symbol or collection of symbols, or all instrumentable vars if sym-or-syms ...
macrocljs.spec.test.alpha
- function
cljs.spec
- macro
cljs.spec.test
- macro
cljs.spec.test.alpha
Call instrument for all speced-vars. Idempotent.
macrocljs.spec
Call instrument for all speced-vars in namespaces named by ns-syms. Idempotent.
macrocljs.spec
Given an opts map as per instrument, returns the set of syms that can be instrumented.
functioncljs.spec.test
Given an opts map as per instrument, returns the set of syms that can be instrumented.
functioncljs.spec.test.alpha
Coerce to int.
macrocljs.core
Fn returning clojure.test.check.generators/int
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/int
functioncljs.spec.impl.gen
Creates an array of ints. Does not coerce array, provided for compatibility with Clojure.
functioncljs.core
Returns a spec that validates longs in the range from start (inclusive) to end (exclusive).
macrocljs.spec
Returns a spec that validates fixed precision integers in the range from start (inclusive) to end (exclusive).
macrocljs.spec.alpha
Return true if start <= val and val < end
functioncljs.spec
Return true if start <= val, val < end and val is a fixed precision integer.
functioncljs.spec.alpha
- value
cljs.reader
- function
cljs.core
Return true if x satisfies integer? or is an instance of goog.math.Integer or goog.math.Long.
functioncljs.core
Returns true if n is a JavaScript number with no decimal part.
functioncljs.core
- value
cljs.core
- value
cljs.core
Returns a lazy seq of the first item in each coll, then the second etc.
functioncljs.core
Returns a lazy seq of the elements of coll separated by sep. Returns a stateful transducer when no collection is provide...
functioncljs.core
Return a set that is the intersection of the input sets
functionclojure.set
Returns a new coll consisting of to-coll with all of the items of from-coll conjoined. A transducer may be supplied.
functioncljs.core
Returns an array with components set to the values in aseq. Optional type argument accepted for compatibility with Cloju...
functioncljs.core
- function
cljs.core
tests the validity of a conform return value
functioncljs.spec
tests the validity of a conform return value
functioncljs.spec.alpha
Protocol for types which can have a deferred realization. Currently only implemented by Delay and LazySeq.
protocolcljs.core
- protocol
cljs.pprint
Do not use this. It is kept for backwards compatibility with existing user code that depends on it, but it has been ...
protocolcljs.core
The old IPrintable protocol's implementation consisted of building a giant list of strings to concatenate. This invo...
protocolcljs.core
Marker interface indicating a record object
protocolcljs.core
Protocol for seq types that can reduce themselves. Called by cljs.core/reduce.
protocolcljs.core
Protocol for adding resetting functionality.
protocolcljs.core
Protocol for reversing a seq.
protocolcljs.core
Generic assertion macro. 'form' is any predicate test. 'msg' is an optional message to attach to the assertion. Exampl...
macrocljs.test
- function
cljs.core
Returns true if (= child parent), or child is directly or indirectly derived from parent, either via a JavaScript type i...
functioncljs.core
Protocol for collections to provide access to their items as sequences.
protocolcljs.core
Protocol for adding the ability to a type to be transformed into a sequence.
protocolcljs.core
Marker interface indicating a persistent collection of sequential items
protocolcljs.core
Protocol for adding set functionality to a collection.
protocolcljs.core
Protocol for a collection which can represent their items in a sorted manner.
protocolcljs.core
Protocol for collections to provide access to their items as stacks. The top of the stack should be accessed in the mo...
protocolcljs.core
Protocol for adding swapping functionality.
protocolcljs.core
- function
cljs.core
Return true if x implements IIterable protocol.
functioncljs.core
- value
cljs.core
Returns a lazy sequence of x, (f x), (f (f x)) etc. f must be free of side-effects
functioncljs.core
- value
cljs.core
Creates a seqable/reducible via repeated calls to step, a function of some (continuation token) 'k'. The first call to s...
functioncljs.core
- value
cljs.core
- function
cljs.core
Protocol for adding associativity to transient collections.
protocolcljs.core
Protocol for adding basic functionality to transient collections.
protocolcljs.core
Protocol for adding mapping functionality to transient collections.
protocolcljs.core
Protocol for adding set functionality to a transient collection.
protocolcljs.core
Protocol for adding vector functionality to transient collections.
protocolcljs.core
A marker protocol for UUIDs
protocolcljs.core
Protocol for adding vector functionality to collections.
protocolcljs.core
Protocol for adding volatile functionality.
protocolcljs.core
Protocol for types that can be watched. Currently only implemented by Atom.
protocolcljs.core
- protocol
clojure.browser.net
Protocol for adding metadata to an object.
protocolcljs.core
Protocol for writing. Currently only implemented by StringBufferWriter.
protocolcljs.core
J
When passed 2 rels, returns the rel corresponding to the natural join. When passed an additional keymap, joins on the co...
functionclojure.set
Returns a string of all elements in coll, as returned by (seq coll), separated by an optional separator.
functionclojure.string
Composes a collection of fixtures, in order. Always returns a valid fixture function, even if the collection is empty. ...
functioncljs.test
- special-form
cljs.core
Recursively transforms JavaScript arrays into ClojureScript vectors, and JavaScript objects into ClojureScript maps. Wi...
functioncljs.core
- macro
cljs.core
Emit a top-level JavaScript multi-line comment. New lines will create a new comment line. Comment block will be preceded...
macrocljs.core
Emit JavaScript "debugger;" statement
macrocljs.core
Delete a property from a JavaScript object. Returns true upon success, false otherwise.
macrocljs.core
A default JavaScript evaluation function.
functioncljs.js
- function
cljs.test
- macro
cljs.core
- macro
cljs.core
Emit an inline JavaScript comment.
macrocljs.core
Invoke JavaScript object method via string. Needed when the string is not a valid unquoted property name.
functioncljs.core
Return true if x has a JavaScript iterator property
functioncljs.core
Return the JavaScript keys for an object.
functioncljs.core
- function
cljs.test
- reader-macro
syntax
Modulus of num and div with original javascript behavior. i.e. bug for negative numbers
macrocljs.core
Create JavaSript object from an even number arguments representing interleaved keys and values.
macrocljs.core
- value
cljs.core
- macro
cljs.core
Returns true if x is an instance of Symbol
functioncljs.core
- reader-macro
syntax
Takes a set of functions and returns a fn that is the juxtaposition of those fns. The returned fn takes a variable numb...
functioncljs.core
K
Returns a lazy sequence of the non-nil results of (f item). Note, this means false return values will be included. f mu...
functioncljs.core
Returns a lazy sequence of the non-nil results of (f index item). Note, this means false return values will be included....
functioncljs.core
Returns the key of the map entry.
functioncljs.core
- function
cljs.core
- function
cljs.core
Returns a sequence of the map's keys, in the same order as (seq map).
functioncljs.core
Creates and returns a map validating spec. :req and :opt are both vectors of namespaced-qualified keywords. The validato...
macrocljs.spec
Creates and returns a map validating spec. :req and :opt are both vectors of namespaced-qualified keywords. The validato...
macrocljs.spec.alpha
takes the same arguments as spec/keys and returns a regex op that matches sequences of key/values, converts them into a ...
macrocljs.spec
takes the same arguments as spec/keys and returns a regex op that matches sequences of key/values, converts them into a ...
macrocljs.spec.alpha
- value
cljs.core
Returns a Keyword with the given namespace and name. Do not use : in the keyword strings, it will be added automaticall...
functioncljs.core
- value
cljs.core
Fn returning clojure.test.check.generators/keyword
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/keyword
functioncljs.spec.impl.gen
- reader-macro
syntax
Efficient test to determine that two keywords are identical.
functioncljs.core
Fn returning clojure.test.check.generators/keyword-ns
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/keyword-ns
functioncljs.spec.impl.gen
- reader-macro
syntax
Return true if x is a Keyword
macrocljs.core
Recursively transforms all map keys from strings to keywords.
functionclojure.walk
L
Fn returning clojure.test.check.generators/large-integer
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/large-integer
functioncljs.spec.impl.gen
Lazy loaded version of clojure.test.check.generators/large-integer*
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/large-integer*
functioncljs.spec.impl.gen
Return the last item in coll, in linear time
functioncljs.core
Return last index of value (string or char) in s, optionally searching backward from from-index or nil if not found.
functionclojure.string
Expands to code which yields a lazy sequence of the concatenation of the supplied colls. Each coll expr is not evaluate...
macrocljs.core
Takes a body of expressions that returns an ISeq or nil, and yields a ISeqable object that will invoke the body only the...
macrocljs.core
- function
cljs.core
- value
cljs.core
- value
cljs.core
- function
cljs.core
- function
cljs.core
- value
cljs.spec.gen.alpha
- value
cljs.spec.impl.gen
Returns the loc of the left sibling of the node at this loc, or nil
functionclojure.zip
Returns the loc of the leftmost sibling of the node at this loc, or self
functionclojure.zip
Returns a seq of the left siblings of this loc
functionclojure.zip
binding => binding-form init-expr binding-form => name, or destructuring-form destructuring-form => map-destructure-form...
macrocljs.core
- special-form
cljs.core
fnspec ==> (fname [params*] exprs) or (fname ([params*] exprs)+) Takes a vector of function specs and a body, and gener...
macrocljs.core
- special-form
cljs.core
Creates a new list containing the items.
macrocljs.core
- value
cljs.core
Lazy loaded version of clojure.test.check.generators/list
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/list
functioncljs.spec.impl.gen
- reader-macro
syntax
Creates a new list containing the items prepended to the rest, the last of which will be treated as a sequence.
functioncljs.core
- value
cljs.core
Returns true if x implements IList
functioncljs.core
- function
clojure.browser.event
- function
clojure.browser.event
Boolean flag for LITE_MODE
valuecljs.core
Loads Clojure code from resources in classpath. A path is interpreted as classpath-relative if it begins with a slash or...
special-formcljs.core
- function
cljs.js
- function
cljs.js
Sequentially read and evaluate the set of forms contained in the file.
special-formcljs.core
- macro
cljs.core
- function
cljs.js
- special-form
cljs.core
- value
clojure.browser.repl
- function
cljs.js
- macro
cljs.core
Returns the natural logarithm (base e) of a. If a is ##NaN or negative => ##NaN If a is ##Inf => ##Inf If a is zero => #...
functioncljs.math
- function
clojure.browser.dom
- function
clojure.browser.dom
Returns the logarithm (base 10) of a. If a is ##NaN or negative => ##NaN If a is ##Inf => ##Inf If a is zero => ##-Inf S...
functioncljs.math
Returns ln(1+x). For small values of x, log1p(x) is more accurate than log(1.0+x). If x is ##NaN or ##-Inf or < -1 => ##...
functioncljs.math
Coerce to long. Identical to `int'.
functioncljs.core
Creates an array of longs. Does not coerce array, provided for compatibility with Clojure.
functioncljs.core
INTERNAL: do not use
valuecljs.core
- function
cljs.core
Evaluates the exprs in a lexical context in which the symbols in the binding-forms are bound to their respective init-ex...
macrocljs.core
- special-form
cljs.core
Converts string to all lower-case.
functionclojure.string
M
- value
cljs.core
- value
cljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
- value
cljs.core
- function
cljs.reader
Repeatedly calls macroexpand-1 on form until it no longer represents a macro form, then returns it. Note neither macroe...
macrocljs.core
Queries the reflection api with a quoted macro form, then calls the callback function with the macroexpanded form, as a ...
functionclojure.reflect
If form represents a macro form, returns its expansion, else returns form.
macrocljs.core
- function
cljs.reader
Construct a JavaScript array of the specified dimensions. Accepts ignored type argument for compatibility with Clojure. ...
macrocljs.core
Creates a hierarchy object for use with derive, isa? etc.
functioncljs.core
Returns a new branch node, given an existing node and new children. The loc is only used to supply the constructor.
functionclojure.zip
- function
cljs.reader
- value
cljs.core
Returns a lazy sequence consisting of the result of applying f to the set of first items of each coll, followed by apply...
functioncljs.core
Lazy loaded version of clojure.test.check.generators/map
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/map
functioncljs.spec.impl.gen
Applies f to every value in the reduction of coll. Foldable.
functionclojure.core.reducers
- reader-macro
syntax
Returns true if x satisfies IMapEntry
functioncljs.core
Returns a lazy sequence consisting of the result of applying f to 0 and the first item of coll, followed by applying f t...
functioncljs.core
Returns the map with the vals mapped to the keys.
functionclojure.set
Returns a spec for a map whose keys satisfy kpred and vals satisfy vpred. Unlike 'every-kv', map-of will exhaustively co...
macrocljs.spec
Returns a spec for a map whose keys satisfy kpred and vals satisfy vpred. Unlike 'every-kv', map-of will exhaustively co...
macrocljs.spec.alpha
Return true if x satisfies IMap
functioncljs.core
Returns the result of applying concat to the result of applying map to f and colls. Thus function f should return a col...
functioncljs.core
Applies f to every value in the reduction of coll, concatenating the result colls of (f val). Foldable.
functionclojure.core.reducers
- value
cljs.core
- function
cljs.test
Returns a vector consisting of the result of applying f to the set of first items of each coll, followed by applying f t...
functioncljs.core
- macro
cljs.core
Returns the greatest of the nums.
functioncljs.core
Returns the x for which (k x), a number, is greatest. If there are multiple such xs, the last one is returned.
functioncljs.core
- value
cljs.spec
- value
cljs.spec.alpha
- function
cljs.reader
Expands into code that creates a fn that expects to be passed an object and any args and calls the named instance method...
macrocljs.core
Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache o...
functioncljs.core
Returns a map that consists of the rest of the maps conj-ed onto the first. If a key occurs in more than one map, the m...
functioncljs.core
Takes map-validating specs (e.g. 'keys' specs) and returns a spec that returns a conformed map satisfying all of the spe...
macrocljs.spec
Takes map-validating specs (e.g. 'keys' specs) and returns a spec that returns a conformed map satisfying all of the spe...
macrocljs.spec.alpha
Returns a map that consists of the rest of the maps conj-ed onto the first. If a key occurs in more than one map, the m...
functioncljs.core
Returns the metadata of obj, returns nil if there is no metadata.
functioncljs.core
Queries the reflection api with a fully qualified symbol, then calls callback fn cb with the evaluated cljs map containi...
functionclojure.reflect
- reader-macro
syntax
- value
cljs.core
Given a multimethod, returns a map of dispatch values -> dispatch fns
functioncljs.core
Returns the least of the nums.
functioncljs.core
Returns the x for which (k x), a number, is least. If there are multiple such xs, the last one is returned.
functioncljs.core
- function
cljs.core
Mix final collection hash for ordered or unordered collections. hash-basis is the combined collection hash, count is the...
functioncljs.core
- function
cljs.core
Modulus of num and div. Truncates toward negative infinity.
functioncljs.core
- value
cljs.core
- value
cljs.core
Builds a combining fn out of the supplied operator and identity constructor. op must be associative and ctor called with...
functionclojure.core.reducers
Takes the name of a spec/predicate-returning multimethod and a tag-restoring keyword or fn (retag). Returns a spec that...
macrocljs.spec
Takes the name of a spec/predicate-returning multimethod and a tag-restoring keyword or fn (retag). Returns a spec that...
macrocljs.spec.alpha
- function
cljs.core
- value
cljs.core
- value
cljs.core
Returns the product of x and y, throws ArithmeticException on overflow.
functioncljs.math
- value
cljs.core
Munge symbol or string `name` for safe use in JavaScript. - Replaces '..' with '_DOT__DOT_'. - Appends '$' to JavaScrip...
functioncljs.core
Munge string `name` without considering `..` or JavaScript reserved keywords.
functioncljs.core
N
Returns the name String of a string, symbol or keyword.
functioncljs.core
Returns the namespace String of a symbol or keyword, or nil if not present.
functioncljs.core
- value
cljs.core
- reader-macro
syntax
- value
syntax
Returns true if num is NaN, else false
functioncljs.core
Return true if x satisfies int? and is a natural integer value.
functioncljs.core
Returns (possibly transformed) v in the context of coll and k (a key/index or nil). Callers should attempt to provide th...
functionclojure.datafy
- protocol
clojure.core.protocols
Return true if x satisfies int? and is negative.
functioncljs.core
Returns true if num is less than zero, else false
macrocljs.core
Returns the negation of a, throws ArithmeticException on overflow.
functioncljs.math
- value
cljs.core
The args, if any, are evaluated from left to right, and passed to the JavaScript constructor. The constructed object is ...
special-formcljs.core
Prints a newline using *print-fn*
functioncljs.core
Returns a seq of the items after the first. Calls seq on its argument. If there are no more items, returns nil
functioncljs.core
Moves to the next loc in the hierarchy, depth-first. When reaching the end, returns a distinguished loc detectable via e...
functionclojure.zip
Returns the adjacent floating point number to start in the direction of the second argument. If the arguments are equal,...
functioncljs.math
Returns the adjacent double of d in the direction of ##-Inf. If d is ##NaN => ##NaN If d is ##Inf => Number/MAX_VALUE If...
functioncljs.math
Returns the adjacent double of d in the direction of ##Inf. If d is ##NaN => ##NaN If d is ##Inf => ##Inf If d is zero =...
functioncljs.math
Same as (next (first x))
functioncljs.core
- value
syntax
- function
cljs.core
Returns true if x is nil, false otherwise.
macrocljs.core
returns a spec that accepts nil and values satisfiying pred
macrocljs.spec
returns a spec that accepts nil and values satisfiying pred
macrocljs.spec.alpha
Same as (next (next x))
functioncljs.core
Returns the node at loc
functionclojure.zip
- value
cljs.core
- value
cljs.core
takes a spec and returns a spec that has the same properties except 'conform' returns the original (not the conformed) v...
functioncljs.spec
takes a spec and returns a spec that has the same properties except 'conform' returns the original (not the conformed) v...
functioncljs.spec.alpha
Returns true if x is logical false, false otherwise.
functioncljs.core
Returns false if (pred x) is logical true for any x in coll, else true.
functioncljs.core
If coll is empty, returns nil, else coll
functioncljs.core
Lazy loaded version of clojure.test.check.generators/not-empty
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/not-empty
functioncljs.spec.impl.gen
Returns false if (pred x) is logical true for every x in coll, else true.
functioncljs.core
- function
cljs.reader
- value
cljs.core
Same as (not (= obj1 obj2))
functioncljs.core
You must currently use the ns form only with the following caveats * You must use the :only form of :use * :require...
special-formcljs.core
- special-form
cljs.core
Given a namespace as a symbol return the relative path sans extension
functioncljs.js
Returns a map of the import mappings for the namespace.
macrocljs.core
Returns a map of the intern mappings for the namespace.
macrocljs.core
Returns a map of the intern mappings for the namespace. Bootstrap only.
functioncljs.core
- reader-macro
syntax
- reader-macro
syntax
Returns the name of the namespace, a Namespace object. Bootstrap only.
functioncljs.core
Returns a map of the public intern mappings for the namespace.
macrocljs.core
- function
cljs.js
Removes the mappings for the symbol from the namespace.
macrocljs.core
- function
cljs.test
Bootstrap only.
valuecljs.core
Returns the value at the index. get returns nil if index out of bounds, nth throws an exception unless not-found is supp...
functioncljs.core
Returns the nth next of coll, (seq coll) when n is 0.
functioncljs.core
Returns the nth rest of coll, coll when n is 0.
functioncljs.core
- reader-macro
syntax
Returns true if x is a JavaScript number.
macrocljs.core
O
:lite-mode simple key hash-map, not intended to be used directly.
functioncljs.core
Creates an array of objects. Does not coerce array, provided for compatibility with Clojure.
functioncljs.core
Returns true if x's constructor is Object
functioncljs.core
- value
cljs.core
- value
cljs.core
- function
cljs.core
- value
cljs.core
- value
cljs.core
Returns true if n is odd, throws an exception if n is not an integer
functioncljs.core
Lazy loaded version of clojure.test.check.generators/one-of
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/one-of
functioncljs.spec.impl.gen
Evaluates exprs one at a time, from left to right. If a form returns a logical true value, or returns that value and doe...
macrocljs.core
Takes key+pred pairs, e.g. (s/or :even even? :small #(< % 42)) Returns a destructuring spec that returns a map entry c...
macrocljs.spec
Takes key+pred pairs, e.g. (s/or :even even? :small #(< % 42)) Returns a destructuring spec that returns a map entry c...
macrocljs.spec.alpha
- value
clojure.browser.repl
P
- value
clojure.browser.repl
Returns the immediate parents of tag, either via a JavaScript type inheritance relationship or a relationship establishe...
functioncljs.core
- function
cljs.reader
Parse strings "true" or "false" and return a boolean, or nil if invalid. Note that this explicitly excludes strings with...
functioncljs.core
Parse string with floating point components and return a floating point value, or nil if parse fails. Grammar: https://d...
functioncljs.core
Parse string of decimal digits with optional leading -/+ and return an integer value, or nil if parse fails
functioncljs.core
- function
cljs.reader
Parse a string representing a UUID and return a UUID instance, or nil if parse fails. Grammar: https://docs.oracle.com/j...
functioncljs.core
Takes a function f and fewer than the normal arguments to f, and returns a fn that takes a variable number of additional...
functioncljs.core
Returns a lazy sequence of lists of n items each, at offsets step apart. If step is not supplied, defaults to n, i.e. th...
functioncljs.core
Returns a lazy sequence of lists like partition, but may include partitions with fewer than n items at the end. Returns...
functioncljs.core
Applies f to each value in coll, splitting it each time f returns a new value. Returns a lazy seq of partitions. Retur...
functioncljs.core
Returns a lazy sequence of vectors of n items each, at offsets step apart. If step is not supplied, defaults to n, i.e. ...
functioncljs.core
Returns a lazy sequence of vector partitions, but may include partitions with fewer than n items at the end. Returns a s...
functioncljs.core
Returns a seq of nodes leading to this loc
functionclojure.zip
For a list or queue, same as first, for a vector, same as, but much more efficient than, last. If the collection is empt...
functioncljs.core
Returns a new, persistent version of the transient collection, in constant time. The transient collection cannot be used...
functioncljs.core
- function
cljs.core
- value
cljs.core
- function
cljs.core
- function
cljs.core
- function
cljs.core
- value
cljs.core
- function
cljs.core
- function
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- function
cljs.core
- value
cljs.core
- function
cljs.core
- function
cljs.core
- value
cljs.core
- function
cljs.core
- function
cljs.core
- value
cljs.core
- function
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- function
cljs.core
Constant for pi, the ratio of the circumference of a circle to its diameter. See: https://developer.mozilla.org/en-US/do...
valuecljs.math
For a list or queue, returns a new list/queue without the first item, for a vector, returns a new vector without the las...
functioncljs.core
Removes the last item from a transient vector. If the collection is empty, throws an exception. Returns tcoll
functioncljs.core
- value
clojure.browser.repl
Return true if x satisfies int? and is positive.
functioncljs.core
Returns true if num is greater than zero, else false
macrocljs.core
Performs a depth-first, post-order traversal of form. Calls f on each sub-form, uses f's return value in place of the o...
functionclojure.walk
Recursively transforms form by replacing keys in smap with their values. Like clojure/replace but works on any data str...
functionclojure.walk
Returns the value of a raised to the power of b. For more details on special cases, see: https://developer.mozilla.org/e...
functioncljs.math
A convenience macro that pretty prints the last thing output. This is exactly equivalent to (pprint *1).
macrocljs.pprint
- function
cljs.pprint
Create an indent at this point in the pretty printing stream. This defines how following lines are indented. relative-to...
functioncljs.pprint
Execute the body as a pretty printing logical block with output to *out* which must be a pretty printing writer. When us...
macrocljs.pprint
Print a conditional newline to a pretty printing stream. kind specifies if the newline is :linear, :miser, :fill, or :ma...
functioncljs.pprint
- value
cljs.pprint
Tab at this point in the pretty printing stream. kind specifies whether the tab is :line, :section, :line-relative, or :...
functioncljs.pprint
Prints the object(s) using string-print. Prints the object(s), separated by spaces if there is more than one. By defaul...
functioncljs.core
- function
cljs.core
Do not use this. It is kept for backwards compatibility with the old IPrintable protocol.
functioncljs.core
- function
cljs.core
pr to a string, returning it. Fundamental entrypoint to IPrintWithWriter.
functioncljs.core
Support so that collections can implement toString without loading all the printing machinery.
functioncljs.core
Prints a sequence of objects to a string, observing all the options given in opts
functioncljs.core
Prints a sequence of objects using string-print, observing all the options given in opts
functioncljs.core
Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y when there is a conflict
functioncljs.core
Given a multimethod, returns a map of preferred value -> set of other values
functioncljs.core
- function
cljs.js
- protocol
cljs.pprint
Moves to the previous loc in the hierarchy, depth-first. If already at the root, returns nil.
functionclojure.zip
Like postwalk, but does pre-order traversal.
functionclojure.walk
Recursively transforms form by replacing keys in smap with their values. Like clojure/replace but works on any data str...
functionclojure.walk
Create seq from a primitive JavaScript Array-like.
functioncljs.core
Prints the object(s) using string-print. print and println produce output for human consumption.
functioncljs.core
- function
cljs.repl
- function
clojure.reflect
A version of loop that iterates at most *print-length* times. This is designed for use in pretty-printer dispatch functi...
macrocljs.pprint
- function
cljs.core
- function
cljs.core
- function
cljs.core
- value
clojure.browser.repl
print to a string, returning it
functioncljs.core
Prints a collection of maps in a textual table. Prints table headings ks, and then a line of output for each row, corres...
functioncljs.pprint
Prints formatted output, as per format
functioncljs.core
Same as print followed by (newline)
functioncljs.core
println to a string, returning it
functioncljs.core
Same as pr followed by (newline).
functioncljs.core
Same as pr-str followed by (newline)
functioncljs.core
Same as pr-str-with-opts followed by (newline)
functioncljs.core
- value
cljs.nodejs
Returns a rel of the elements of xrel with only the keys in ks
functionclojure.set
- value
cljs.core
Default proxy for maps and vectors.
valuecljs.proxy
- macro
cljs.repl
- function
cljs.reader
- protocol
cljs.reader
Q
Return true if x is a symbol or keyword with a namespace
functioncljs.core
Return true if x is a keyword with a namespace
functioncljs.core
Return true if x is a symbol with a namespace
functioncljs.core
- reader-macro
syntax
- function
cljs.spec.gen.alpha
- function
cljs.spec.impl.gen
quot[ient] of dividing numerator by denominator.
functioncljs.core
Yields the unevaluated form.
special-formcljs.core
- reader-macro
syntax
R
Returns a random floating point number between 0 (inclusive) and n (default 1) (exclusive).
functioncljs.core
Returns a random integer between 0 (inclusive) and n (exclusive).
functioncljs.core
Return a random element of the (sequential) collection. Will have the same performance characteristics as nth for the gi...
functioncljs.core
Returns a positive double between 0.0 and 1.0, chosen pseudorandomly with approximately random distribution. Not cryptog...
functioncljs.math
Returns items from coll with random probability of prob (0.0 - 1.0). Returns a transducer when no collection is provide...
functioncljs.core
Returns a pseudo-randomly generated UUID instance (i.e. type 4).
functioncljs.core
Returns a lazy seq of nums from start (inclusive) to end (exclusive), by step, where start defaults to 0, step to 1, and...
functioncljs.core
- value
cljs.core
- value
cljs.core
- function
cljs.core
- value
cljs.core
- value
cljs.core
Fn returning clojure.test.check.generators/ratio
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/ratio
functioncljs.spec.impl.gen
- value
cljs.reader
Returns the first regex match, if any, of s to re, using re.exec(s). Returns a vector, containing first the matching sub...
functioncljs.core
Returns the result of (re-find re s) if re fully matches s.
functioncljs.core
Returns an instance of RegExp which has compiled the provided string.
functioncljs.core
Returns a lazy sequence of successive matches of re in s.
functioncljs.core
Reads the first object from an cljs.tools.reader.reader-types/IPushbackReader. Returns the object read. If EOF, throws i...
functioncljs.reader
Reads the first object from an cljs.tools.reader.reader-types/IPushbackReader. Returns the object read. If EOF, throws i...
functionclojure.edn
- function
cljs.reader
- function
cljs.reader
- value
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
Read until first character that doesn't match pred, returning char.
functioncljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
Reads one object from the string s. Returns nil when s is nil or empty. Reads data in the edn format (subset of Clojure...
functioncljs.reader
Reads one object from the string s. Returns nil when s is nil or empty. Reads data in the edn format (subset of Clojure...
functionclojure.edn
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
- function
cljs.reader
Returns true if a value has been produced for a delay or lazy sequence.
functioncljs.core
Return true if x satisfies IRecord
functioncljs.core
- value
cljs.core
Evaluates the exprs in order, then, in parallel, rebinds the bindings of the recursion point to the values of the exprs....
special-formcljs.core
- value
cljs.core
f should be a function of 2 arguments. If val is not supplied, returns the result of applying f to the first 2 items in ...
functioncljs.core
Like core/reduce except: When init is not provided, (f) is used. Maps are reduced with reduce-kv
functionclojure.core.reducers
Reduces an associative collection. f should be a function of 3 arguments. Returns the result of applying f to init, the ...
functioncljs.core
Returns true if coll satisfies IReduce
functioncljs.core
Wraps x in a way such that a reduce will terminate with the value x
functioncljs.core
- value
cljs.core
Returns true if x is the result of a call to reduced
functioncljs.core
Given a reducible collection, and a transformation function xf, returns a reducible collection, where any supplied reduc...
functionclojure.core.reducers
Returns a lazy seq of the intermediate values of the reduction (as per reduce) of coll by f, starting with init.
functioncljs.core
Refers to all the public vars of `cljs.core`, subject to filters. Filters can include at most one each of: :exclude lis...
macrocljs.core
Refer global js vars. Supports renaming via :rename. (refer-global :only '[Date Symbol] :rename '{Symbol Sym})
macrocljs.core
- reader-macro
syntax
returns x if x is a (clojure.spec) regex op, else logical false
functioncljs.spec
returns x if x is a (cljs.spec.alpha) regex op, else logical false
functioncljs.spec.alpha
Returns true if x is a JavaScript RegExp instance.
functioncljs.core
- function
cljs.reader
- function
cljs.reader
returns the registry map, prefer 'get-spec' to lookup a spec by name
functioncljs.spec
returns the registry map, prefer 'get-spec' to lookup a spec by name
functioncljs.spec.alpha
- value
cljs.spec
- value
cljs.spec.alpha
reify creates an object implementing a protocol. reify is a macro with the following structure: (reify options* specs*...
macrocljs.core
remainder of dividing numerator by denominator.
functioncljs.core
Returns a lazy sequence of the items in coll for which (pred item) returns logical false. pred must be free of side-effe...
functioncljs.core
Removes values in the reduction of coll for which (pred val) returns logical true. Foldable.
functionclojure.core.reducers
Removes the node at loc, returning the loc that would have preceded it in a depth-first walk.
functionclojure.zip
- function
clojure.browser.event
Removes all of the methods of multimethod.
functioncljs.core
Remove all children from the element with the passed id.
functionclojure.browser.dom
Removes the method of multimethod associated with dispatch-value.
functioncljs.core
Remove f from the tap set.
functioncljs.core
Removes a watch (set by add-watch) from a reference
functioncljs.core
Returns a rel of the maps in xrel with the keys in kmap renamed to the vals in kmap
functionclojure.set
Returns the map with the keys in kmap renamed to the vals in kmap
functionclojure.set
Returns a lazy (infinite!, or length n if supplied) sequence of xs.
functioncljs.core
- value
cljs.core
Takes a function of no args, presumably with side effects, and returns an infinite (or length n if supplied) lazy sequen...
functioncljs.core
- function
clojure.browser.repl
Given a map of replacement pairs and a vector/collection, returns a vector/seq with any elements = a key in smap replace...
functioncljs.core
Replaces all instance of match with replacement in s. match/replacement can be: string / string pattern / (string or f...
functionclojure.string
Replaces the node at this loc, without moving
functionclojure.zip
Replaces the first instance of match with replacement in s. match/replacement can be: string / string pattern / (strin...
functionclojure.string
Replace old-node with new-node. old-node can be an element or a keyword which is the id of the node to replace. new-nod...
functionclojure.browser.dom
DEPRECATED: Use 'repeat' instead. Returns a lazy seq of n xs.
functioncljs.core
Generic reporting function, may be overridden to plug in different report formats (e.g., TAP, JUnit). Assertions suc...
multimethodcljs.test
Loads libs, skipping any that are already loaded. Each argument is either a libspec that identifies a lib or a flag that...
macrocljs.core
- function
cljs.js
- value
cljs.nodejs
Require libraries in the global JS environment. (require-global '[SomeLib :as lib :refer [foo]])
macrocljs.core
Similar to require but only for macros.
macrocljs.core
Sets the value of atom to newval without regard for the current value. Returns new-value.
functioncljs.core
Atomically resets the metadata for an atom
functioncljs.core
Sets the value of atom to newval. Returns [old new], the value of the atom before and after the reset.
functioncljs.core
Returns the var to which a symbol will be resolved in the namespace else nil.
macrocljs.core
Returns a possibly empty seq of the items after the first. Calls seq on its argument.
functioncljs.core
- reader-macro
syntax
Lazy loaded version of clojure.test.check.generators/return
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/return
functioncljs.spec.impl.gen
Returns a seq of the items in coll in reverse order. Not lazy.
functioncljs.core
Returns s with its characters reversed.
functionclojure.string
Returns true if coll satisfies? IReversible.
functioncljs.core
Returns the loc of the right sibling of the node at this loc, or nil
functionclojure.zip
Returns the loc of the rightmost sibling of the node at this loc, or self
functionclojure.zip
Returns a seq of the right siblings of this loc
functionclojure.zip
Returns the double closest to a and equal to a mathematical integer. If two values are equally close, return the even on...
functioncljs.math
zips all the way up and returns the root node, reflecting any changes.
functionclojure.zip
Returns the closest long to a. If equally close to two values, return the one closer to ##Inf. If a is ##NaN => 0 If a i...
functioncljs.math
- value
cljs.core
Returns, in constant time, a seq of the items in rev (which can be a vector or sorted-map), in reverse order. If rev is ...
functioncljs.core
sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a reverse seq of those entries with keys ek for w...
functioncljs.core
Runs the supplied procedure (via reduce), for purposes of side effects, on successive items in the collection. Returns n...
functioncljs.core
Like clojure.test/run-all-tests, but runs test.check tests for all speced vars. Prints per-test results to *out*, and re...
macrocljs.spec.test
Runs all tests in all namespaces; prints results. Optional argument is a regular expression; only namespaces with names ...
macrocljs.test
Invoke all functions in fns with no arguments. A fn can optionally return an async test - is invoked with a continuatio...
functioncljs.test
Runs a single test. Because the intent is to run a single test, there is no check for the namespace test-ns-hook.
macrocljs.test
Like run-all-tests, but scoped to specific namespaces, or to *ns* if no ns-sym are specified.
macrocljs.spec.test
Runs all tests in the given namespaces; prints results. Defaults to current namespace if none given. Does not return a m...
macrocljs.test
Like test-vars, but returns a block for further composition and later execution.
macrocljs.test
S
Lazy loaded version of clojure.test.check.generators/sample
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/sample
functioncljs.spec.impl.gen
Returns true if x satisfies the protocol
macrocljs.core
Returns d * 2^scaleFactor, scaling by a factor of 2. If the exponent is between min_Float64_exponent and max_Float64_exp...
functioncljs.math
Same as (first (next x))
functioncljs.core
Returns a set of the elements for which pred is true
functionclojure.set
Returns a map containing only those entries in map whose key is in keys
functioncljs.core
Send data to be printed in the REPL. If there is an error, try again up to 10 times.
functionclojure.browser.repl
- function
clojure.browser.repl
Returns a seq on the collection. If the collection is empty, returns nil. (seq nil) returns nil. seq also works on Stri...
functioncljs.core
- function
cljs.core
Builds a map from a seq as described in https://clojure.org/reference/special_forms#keyword-arguments
functioncljs.core
Returns a zipper for nested sequences, given a root sequence
functionclojure.zip
Return true if s satisfies ISeq
functioncljs.core
Return true if the seq function is supported for s
functioncljs.core
- value
cljs.core
Coerces coll to a (possibly empty) sequence, if it is not already one. Will not force a lazy seq. (sequence nil) yields ...
functioncljs.core
Returns true if coll satisfies ISequential
functioncljs.core
- value
cljs.core
Returns a set of the distinct elements of coll.
functioncljs.core
Lazy loaded version of clojure.test.check.generators/set
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/set
functioncljs.spec.impl.gen
- reader-macro
syntax
Used to set vars and JavaScript object fields
special-formcljs.core
- function
cljs.core
- function
cljs.test
- function
cljs.core
:lite-mode version of set, not intended ot be used directly.
functioncljs.core
- function
cljs.pprint
Set *print-err-fn* to f.
functioncljs.core
Set *print-fn* to f.
functioncljs.core
Set properties on an element
functionclojure.browser.dom
Set the text content for the passed element returning the element. If a keyword is passed in the place of e, the element...
functionclojure.browser.dom
Sets the validator-fn for an atom. validator-fn must be nil or a side-effect-free fn of one argument, which will be pass...
functioncljs.core
Set the value property for an element.
functionclojure.browser.dom
- value
cljs.core
Returns true if x satisfies ISet
functioncljs.core
- value
cljs.core
Set the value of the field SYM to NEW-VAL
macrocljs.pprint
- value
cljs.core
- reader-macro
syntax
- macro
cljs.core
- function
cljs.core
Return a random permutation of coll
functioncljs.core
Lazy loaded version of clojure.test.check.generators/shuffle
functioncljs.spec.gen.alpha
Returns the signum function of d - zero for zero, 1.0 if >0, -1.0 if <0. If d is ##NaN => ##NaN If d is ##Inf or ##-Inf ...
functioncljs.math
Runs expr iterations times in the context of a let expression with the given bindings, then prints out the bindings and ...
macrocljs.core
The pretty print dispatch function for simple data structure format.
multimethodcljs.pprint
keyval => key val Returns a new hash map with supplied mappings.
functioncljs.core
Return true if x is a symbol or keyword without a namespace
functioncljs.core
Return true if x is a keyword without a namespace
functioncljs.core
- function
cljs.core
Return true if x is a symbol without a namespace
functioncljs.core
Fn returning clojure.test.check.generators/simple-type
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/simple-type
functioncljs.spec.impl.gen
Fn returning clojure.test.check.generators/simple-type-printable
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/simple-type-printable
functioncljs.spec.impl.gen
- function
cljs.core
- function
cljs.core
Returns the sine of an angle. If a is ##NaN, ##-Inf, ##Inf => ##NaN If a is zero => zero with the same sign as a See: ht...
functioncljs.math
- value
cljs.core
Returns the hyperbolic sine of x, (e^x - e^-x)/2. If x is ##NaN => ##NaN If x is ##Inf or ##-Inf or zero => x See: https...
functioncljs.math
Advances the reader to the end of a line. Returns the reader
functioncljs.reader
- function
cljs.js
Returns the first logical true value of (pred x) for any x in coll, else nil. One common idiom is to use a set as pred,...
functioncljs.core
When expr is not nil, threads it into the first form (via ->), and when that result is not nil, through the next etc
macrocljs.core
When expr is not nil, threads it into the first form (via ->>), and when that result is not nil, through the next etc
macrocljs.core
Takes a set of predicates and returns a function f that returns the first logical true value returned by one of its comp...
functioncljs.core
Returns true if x is not nil, false otherwise.
macrocljs.core
Returns a sorted sequence of the items in coll. Comp can be boolean-valued comparison function, or a -/0/+ valued compar...
functioncljs.core
Returns a sorted sequence of the items in coll, where the sort order is determined by comparing (keyfn item). Comp can ...
functioncljs.core
keyval => key val Returns a new sorted map with supplied mappings.
functioncljs.core
keyval => key val Returns a new sorted map with supplied mappings, using the supplied comparator.
functioncljs.core
Returns a new sorted set with supplied keys.
functioncljs.core
Returns a new sorted set with supplied keys, using the supplied comparator.
functioncljs.core
Returns true if coll satisfies ISorted
functioncljs.core
Prints the source code for the given symbol, if it can find it. This requires that the symbol resolve to a Var defined i...
macrocljs.repl
Takes a single predicate form, e.g. can be the name of a predicate, like even?, or a fn literal like #(< % 42). Note tha...
macrocljs.spec
- protocol
cljs.spec
Takes a single predicate form, e.g. can be the name of a predicate, like even?, or a fn literal like #(< % 42). Note tha...
macrocljs.spec.alpha
- protocol
cljs.spec.alpha
returns x if x is a spec object, else logical false
functioncljs.spec
returns x if x is a spec object, else logical false
functioncljs.spec.alpha
- function
cljs.spec
- function
cljs.spec.alpha
- function
cljs.spec
Returns true if x names a special form
functioncljs.core
- function
cljs.reader
Identical to specify! but does not mutate its first argument. The first argument must be an ICloneable instance.
macrocljs.core
Identical to reify but mutates its first argument.
macrocljs.core
- protocol
cljs.spec
- protocol
cljs.spec.alpha
Splits string on a regular expression. Optional argument limit is the maximum number of parts. Not lazy. Returns vector ...
functionclojure.string
Returns a vector of [(take n coll) (drop n coll)]
functioncljs.core
Splits s on \n or \r\n. Trailing empty lines are not returned.
functionclojure.string
Returns a vector of [(take-while pred coll) (drop-while pred coll)]
functioncljs.core
Returns a vector of [(into [] (take n) coll) (drop n coll)]
functioncljs.core
- function
cljs.core
Returns the positive square root of a. If a is ##NaN or negative => ##NaN If a is ##Inf => ##Inf If a is zero => a See: ...
functioncljs.math
Start the REPL server connection process. This process runs inside the embedded iframe.
functionclojure.browser.repl
True if s starts with substr.
functionclojure.string
- value
cljs.core
- function
cljs.core
With no args, returns the empty string. With one arg x, returns x.toString(). (str nil) returns the empty string. With ...
macrocljs.core
- macro
cljs.core
Fn returning clojure.test.check.generators/string
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/string
functioncljs.spec.impl.gen
- reader-macro
syntax
Fn returning clojure.test.check.generators/string-alphanumeric
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/string-alphanumeric
functioncljs.spec.impl.gen
Fn returning clojure.test.check.generators/string-ascii
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/string-ascii
functioncljs.spec.impl.gen
- value
cljs.core
- value
cljs.core
- function
cljs.core
- function
cljs.core
Returns true if x is a JavaScript string.
macrocljs.core
- value
cljs.core
Recursively transforms all map keys from keywords to strings.
functionclojure.walk
- value
cljs.core
- value
cljs.reader
Returns the substring of s beginning at start inclusive, and ending at end (defaults to length of string), exclusive.
functioncljs.core
sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a seq of those entries with keys ek for which (te...
functioncljs.core
Is set1 a subset of set2?
functionclojure.set
Returns the difference of x and y, throws ArithmeticException on overflow.
functioncljs.math
- value
cljs.core
Returns a persistent vector of the items in vector from start (inclusive) to end (exclusive). If end is not supplied, d...
functioncljs.core
Returns true if the given test summary indicates all tests were successful, false otherwise.
functioncljs.test
Lazy loaded version of clojure.test.check.generators/such-that
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/such-that
functioncljs.spec.impl.gen
Given a collection of check-results, e.g. from 'check', pretty prints the summary-result (default abbrev-result) of each...
functioncljs.spec.test
Given a collection of check-results, e.g. from 'check', pretty prints the summary-result (default abbrev-result) of each...
functioncljs.spec.test.alpha
Returns the immediate and indirect prototypes of c, if any
functioncljs.core
Is set1 a superset of set2?
functionclojure.set
Atomically swaps the value of atom to be: (apply f current-value-of-atom args). Note that f may be called multiple times...
functioncljs.core
Atomically swaps the value of atom to be: (apply f current-value-of-atom args). Note that f may be called multiple times...
functioncljs.core
- value
cljs.core
Returns a Symbol with the given namespace and name. Arity-1 works on strings, keywords, and vars.
functioncljs.core
Fn returning clojure.test.check.generators/symbol
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/symbol
functioncljs.spec.impl.gen
- reader-macro
syntax
Efficient test to determine that two symbols are identical.
functioncljs.core
Fn returning clojure.test.check.generators/symbol-ns
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/symbol-ns
functioncljs.spec.impl.gen
- value
cljs.reader
Return true if x is a Symbol
macrocljs.core
- reader-macro
syntax
Returns highest resolution time offered by host in milliseconds.
functioncljs.core
T
Construct a data representation of a tagged literal from a tag symbol and a form.
functioncljs.core
- reader-macro
syntax
Return true if the value is the data representation of a tagged literal
functioncljs.core
- value
cljs.core
Returns a lazy sequence of the first n items in coll, or all items if there are fewer than n. Returns a stateful transd...
functioncljs.core
Ends the reduction of coll after consuming n values.
functionclojure.core.reducers
Returns a seq of the last n items in coll. Depending on the type of coll may be no better than linear time. For vector...
functioncljs.core
Returns a lazy seq of every nth item in coll. Returns a stateful transducer when no collection is provided.
functioncljs.core
Returns a lazy sequence of successive items from coll while (pred item) returns logical true. pred must be free of side-...
functioncljs.core
Ends the reduction of coll when (pred val) returns logical false.
functionclojure.core.reducers
Returns the tangent of an angle. If a is ##NaN, ##-Inf, ##Inf => ##NaN If a is zero => zero with the same sign as a See:...
functioncljs.math
Returns the hyperbolic tangent of x, sinh(x)/cosh(x). If x is ##NaN => ##NaN If x is zero => zero, with same sign If x i...
functioncljs.math
Sends x to any taps. Returns the result of *exec-tap-fn*, a Boolean value.
functioncljs.core
test [v] - if var, finds fn at key :test in var metadata, if function, finds special test property. Calls it, presuming ...
functioncljs.core
Calls test-vars on every var with :test metadata interned in the namespace, with fixtures.
macrocljs.test
- macro
cljs.test
If the namespace defines a function named test-ns-hook, calls that. Otherwise, calls test-all-vars on the namespace. 'n...
macrocljs.test
Like test-ns, but returns a block for further composition and later execution. Does not clear the current env.
macrocljs.test
If v has a function in its :test metadata, calls that function, add v to :testing-vars property of env.
functioncljs.test
Like test-var, but returns a block for further composition and later execution.
functioncljs.test
Groups vars by their namespace and runs test-var on them with appropriate fixtures assuming they are present in the curr...
functioncljs.test
Like test-vars, but returns a block for further composition and later execution.
functioncljs.test
Adds a new string to the list of testing contexts. May be nested, but must occur inside a test function (deftest).
macrocljs.test
Returns a string representation of the current test context. Joins strings in *testing-contexts* with spaces.
functioncljs.test
Returns a string representation of the current test. Renders names in *testing-vars* as a list, then the source file an...
functioncljs.test
Defines a scope where JavaScript's implicit "this" is bound to the name provided.
macrocljs.core
The expr is evaluated and thrown.
special-formcljs.core
Constructs a data representation for an Error with keys: :cause - root cause message :phase - error phase :via - caus...
functioncljs.core
- function
cljs.reader
Evaluates expr and prints the time it took. Returns the value of expr.
macrocljs.core
Returns an array containing the contents of coll.
functioncljs.core
Returns a (potentially-ragged) 2-dimensional array containing the contents of coll.
functioncljs.core
Converts an angle in radians to an approximate equivalent angle in degrees. See: https://docs.oracle.com/javase/8/docs/a...
functioncljs.math
Converts an angle in degrees to an approximate equivalent angle in radians. See: https://docs.oracle.com/javase/8/docs/a...
functioncljs.math
- function
clojure.browser.event
trampoline can be used to convert algorithms requiring mutual recursion without stack consumption. Calls f with supplied...
functioncljs.core
reduce with a transformation of f (xf). If init is not supplied, (f) will be called to produce it. f should be a reducin...
functioncljs.core
- function
cljs.core
- value
cljs.core
- function
cljs.core
- function
cljs.core
Returns a new, transient version of the collection, in constant time.
functioncljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
Returns a lazy sequence of the nodes in a tree, via a depth-first walk. branch? must be a fn of one arg that returns tru...
functioncljs.core
Removes whitespace from both ends of string.
functionclojure.string
Removes all trailing newline \n or return \r characters from string. Similar to Perl's chomp.
functionclojure.string
Removes whitespace from the left side of string.
functionclojure.string
Removes whitespace from the right side of string.
functionclojure.string
- value
syntax
Returns true if x is the value true, false otherwise.
macrocljs.core
- macro
cljs.core
catch-clause => (catch classname name expr*) finally-clause => (finally expr*) Catches and handles JavaScript exceptions...
special-formcljs.core
- special-form
cljs.core
Used by the 'is' macro to catch unexpected exceptions. You don't call this.
macrocljs.test
takes one or more preds and returns a spec for a tuple, a vector where each element conforms to the corresponding pred. ...
macrocljs.spec
takes one or more preds and returns a spec for a tuple, a vector where each element conforms to the corresponding pred. ...
macrocljs.spec.alpha
Lazy loaded version of clojure.test.check.generators/tuple
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/tuple
functioncljs.spec.impl.gen
Return x's constructor.
functioncljs.core
- function
cljs.core
U
Returns the size of an ulp (unit in last place) for d. If d is ##NaN => ##NaN If d is ##Inf or ##-Inf => ##Inf If d is z...
functioncljs.math
Returns the sum of nums. (+) returns 0.
macrocljs.core
Returns the sum of nums. (+) returns 0.
macrocljs.core
- macro
cljs.core
- macro
cljs.core
Returns a number one less than x, an int.
macrocljs.core
Returns a number one less than x, an int.
macrocljs.core
If no denominators are supplied, returns 1/numerator, else returns numerator divided by all of the denominators.
macrocljs.core
- macro
cljs.core
- macro
cljs.core
INTERNAL. Compiles to JavaScript property access using bracket notation. Does not distinguish between object and array t...
macrocljs.core
- macro
cljs.core
- macro
cljs.core
Coerce to int.
functioncljs.core
Coerce to long. Identical to `int'.
functioncljs.core
- macro
cljs.core
- macro
cljs.core
Returns the product of nums. (*) returns 1.
macrocljs.core
Returns the product of nums. (*) returns 1.
macrocljs.core
- macro
cljs.core
- macro
cljs.core
- macro
cljs.core
INTERNAL. Compiles to JavaScript property access using bracket notation. Does not distinguish between object and array t...
macrocljs.core
- macro
cljs.core
If no ys are supplied, returns the negation of x, else subtracts the ys from x and returns the result.
functioncljs.core
If no ys are supplied, returns the negation of x, else subtracts the ys from x and returns the result.
functioncljs.core
If no ys are supplied, returns the negation of x, else subtracts the ys from x and returns the result.
macrocljs.core
If no ys are supplied, returns the negation of x, else subtracts the ys from x and returns the result.
macrocljs.core
Returns true if x identical to the JavaScript undefined value.
macrocljs.core
Removes a parent/child relationship between parent and tag. h must be a hierarchy obtained from make-hierarchy, if not s...
functioncljs.core
Given a spec and a value created by or compliant with a call to 'conform' with the same spec, returns a value with all c...
functioncljs.spec
Given a spec and a value created by or compliant with a call to 'conform' with the same spec, returns a value with all c...
functioncljs.spec.alpha
- value
cljs.reader
- value
cljs.reader
Return a set that is the union of the input sets
functionclojure.set
- function
clojure.browser.event
- function
clojure.browser.event
- function
clojure.browser.event
- reader-macro
syntax
- reader-macro
syntax
- reader-macro
syntax
If x is reduced?, returns (deref x), else returns x
functioncljs.core
- macro
cljs.core
EXPERIMENTAL: Subject to change. Unsafely cast a value to a different type.
macrocljs.core
Bitwise shift right with zero fill
macrocljs.core
Undoes instrument on the var at v, a var or symbol. Idempotent.
macrocljs.spec
Undoes instrument on the vars named by sym-or-syms, specified as in instrument. With no args, unstruments all instrument...
macrocljs.spec.test
Undoes instrument on the vars named by sym-or-syms, specified as in instrument. With no args, unstruments all instrument...
macrocljs.spec.test.alpha
- function
cljs.spec
- macro
cljs.spec.test
- macro
cljs.spec.test.alpha
Call unstrument for all speced-vars. Idempotent
macrocljs.spec
Call unstrument for all speced-vars in namespaces named by ns-syms. Idempotent.
macrocljs.spec
Returns the loc of the parent of the node at this loc, or nil if at the top
functionclojure.zip
'Updates' a value in an associative structure, where k is a key and f is a function that will take the old value and any...
functioncljs.core
- function
cljs.test
'Updates' a value in a nested associative structure, where ks is a sequence of keys and f is a function that will take t...
functioncljs.core
m f => {(f k) v ...} Given a map m and a function f of 1-argument, returns a new map whose keys are the result of applyi...
functioncljs.core
m f => {k (f v) ...} Given a map m and a function f of 1-argument, returns a new map where the keys of m are mapped to r...
functioncljs.core
Converts string to all upper-case.
functionclojure.string
Returns true x is a goog.Uri instance.
functioncljs.core
Like require, but referring vars specified by the mandatory :only option. Example: The following would load the librar...
macrocljs.core
- macro
cljs.test
Similar to use but only for macros.
macrocljs.core
Returns a UUID consistent with the string s.
functioncljs.core
- value
cljs.core
Fn returning clojure.test.check.generators/uuid
functioncljs.spec.gen.alpha
Fn returning clojure.test.check.generators/uuid
functioncljs.spec.impl.gen
- reader-macro
syntax
Return true if x is a UUID.
functioncljs.core
V
Returns the value in the map entry.
functioncljs.core
- function
cljs.js
- function
cljs.js
Helper function that returns true when x is valid for spec.
functioncljs.spec
Helper function that returns true when x is valid for spec.
functioncljs.spec.alpha
- function
cljs.spec.test.alpha
- function
cljs.reader
Returns a sequence of the map's values, in the same order as (seq map).
functioncljs.core
- value
cljs.core
The symbol must resolve to a var, and the Var object itself (not its value) is returned. The reader macro #'x expands to...
special-formcljs.core
- value
cljs.core
- reader-macro
syntax
Returns true if v is of type cljs.core.Var
functioncljs.core
Returns an object of the same type and value as obj, with (apply f (meta obj) args) as its metadata.
functioncljs.core
Creates a new vector containing the contents of coll. JavaScript arrays will be aliased and should not be modified.
functioncljs.core
:lite-mode version of vec, not intended to be used directly.
functioncljs.core
- value
cljs.core
Creates a new vector containing the args.
macrocljs.core
Lazy loaded version of clojure.test.check.generators/vector
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/vector
functioncljs.spec.impl.gen
- reader-macro
syntax
Lazy loaded version of clojure.test.check.generators/vector-distinct
functioncljs.spec.gen.alpha
Lazy loaded version of clojure.test.check.generators/vector-distinct
functioncljs.spec.impl.gen
:lite-mode version of vector, not intended to be used directly.
functioncljs.core
- function
cljs.core
Returns a zipper for nested vectors, given a root vector
functionclojure.zip
- value
cljs.core
- function
cljs.core
Return true if x satisfies IVector
functioncljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
- value
cljs.core
Creates and returns a Volatile with an initial value of val.
functioncljs.core
Returns true if x is a volatile.
functioncljs.core
Sets the value of volatile to newval without regard for the current value. Returns newval.
functioncljs.core
Non-atomically swaps the value of the volatile as if: (apply f current-value-of-vol args). Returns the value that was sw...
macrocljs.core
W
Traverses form, an arbitrary data structure. inner and outer are functions. Applies inner to each element of form, bui...
functionclojure.walk
- function
clojure.browser.net
Evaluates test. If logical true, evaluates body in an implicit do.
macrocljs.core
bindings => x xs Roughly the same as (when (seq xs) (let [x (first xs)] body)) but xs is evaluated only once
macrocljs.core
bindings => binding-form test When test is true, evaluates body with binding-form bound to the value of test
macrocljs.core
Evaluates test. If logical false, evaluates body in an implicit do.
macrocljs.core
bindings => binding-form test When test is not nil, evaluates body with binding-form bound to the value of test
macrocljs.core
Repeatedly executes body while test expression is true. Presumes some side-effect will cause test to become false/nil. R...
macrocljs.core
- reader-macro
syntax
Takes a spec and a no-arg, generator-returning fn and returns a version of that spec that uses that generator
functioncljs.spec
Takes a spec and a no-arg, generator-returning fn and returns a version of that spec that uses that generator
functioncljs.spec.alpha
Disables instrument's checking of calls, within a scope.
macrocljs.spec
Disables instrument's checking of calls, within a scope.
macrocljs.spec.test
Disables instrument's checking of calls, within a scope.
macrocljs.spec.test.alpha
Returns an object of the same type and value as obj, with map m as its metadata.
functioncljs.core
Evaluates exprs in a context in which *print-fn* is bound to .append on a fresh StringBuffer. Returns the string create...
macrocljs.core
Execute body with the pretty print dispatch function bound to function.
macrocljs.pprint
- macro
cljs.pprint
Evaluates body with *read-eval* set to a "known" value, i.e. substituting true for :unknown if necessary.
macrocljs.repl
binding => var-symbol temp-value-expr Temporarily redefines vars while executing the body. The temp-value-exprs will b...
macrocljs.core
- macro
cljs.js
- function
cljs.js
- function
clojure.browser.repl
- function
cljs.reader
Write an object subject to the current bindings of the printer control variables. Use the kw-args argument to override i...
functioncljs.pprint
- function
cljs.core
Write an object to *out* subject to the current bindings of the printer control variables. Use the kw-args argument to o...
functioncljs.pprint
X
Returns an XhrIo connection
functionclojure.browser.net
Returns a zipper for xml elements (as from xml/parse), given a root element
functionclojure.zip
- value
clojure.browser.net
When passed with a config hash-map, returns a parent CrossPageChannel object. Keys in the config hash map are downcased ...
functionclojure.browser.net
- value
clojure.browser.repl