Skip to main content

All Functions

1823 entries

$

  • $

    Convenience macro around `process`. Takes command as varargs. Options can be passed via metadata on the form or as a f...

*

  • *

    Returns the product of nums. (*) returns 1. Does not auto-promote longs, will throw on overflow. See also: *'

  • *'

    Returns the product of nums. (*') returns 1. Supports arbitrary precision. See also: *

  • *1

    bound in a repl thread to the most recent value printed

  • *2

    bound in a repl thread to the second most recent value printed

  • *3

    bound in a repl thread to the third most recent value printed

  • *clojure-version*

    The version info for Clojure core, as a map containing :major :minor :incremental and :qualifier keys. Feature releas...

  • *data-readers*

    Map from reader tag symbols to data reader Vars. When Clojure starts, it searches for files named 'data_readers.clj' ...

  • *default-data-reader-fn*

    When no data reader is found for a tag and *default-data-reader-fn* is non-nil, it will be called with two arguments, ...

  • *defaults*

    Dynamic var containing overridable default options. Use `alter-var-root` to change permanently or `binding` to change ...

  • *e

    bound in a repl thread to the most recent exception caught by the repl

  • *err*

    A java.io.Writer object representing standard error for print operations.

  • *file*

    The path of the file being evaluated, as a String. When there is no file, e.g. in the REPL, the value is not defined.

  • *flush-on-newline*

    When set to true, output will be flushed whenever a newline is printed. Defaults to true.

  • *in*

    A java.io.Reader object representing standard input for read operations.

  • *logger-factory*

    An instance satisfying the clojure.tools.logging.impl/LoggerFactory protocol, which allows uniform access to an underl...

  • *ns*

    A sci.lang.Namespace object representing the current namespace.

  • *out*

    A java.io.Writer object representing standard output for print operations.

  • *print-dup*

    When set to logical true, objects will be printed in a way that preserves their type when read in later. Defaults t...

  • *print-length*

    *print-length* controls how many items of each collection the printer will print. If it is bound to logical false, the...

  • *print-level*

    *print-level* controls how many levels deep the printer will print nested objects. If it is bound to logical false, th...

  • *print-meta*

    If set to logical true, when printing an object, its metadata will also be printed in a form that can be read back by ...

  • *print-namespace-maps*

    *print-namespace-maps* controls whether the printer will print namespace map literal syntax. It defaults to false, but...

  • *print-readably*

    When set to logical false, strings and characters will be printed with non-alphanumeric characters converted to the ap...

  • *read-eval*

    Defaults to true (or value specified by system property, see below) ***This setting implies that the full power of the...

  • *source-path*

    The path of the file being evaluated, as a String. When there is no file, e.g. in the REPL, the value is not defined.

  • *unchecked-math*

    While bound to true, compilations of +, -, *, inc, dec and the coercions will be done without overflow checks. While b...

  • *warn-on-reflection*

    When set to true, the compiler will emit warnings when reflection is needed to resolve Java method calls or field acce...

+

  • +

    Returns the sum of nums. (+) returns 0. Does not auto-promote longs, will throw on overflow. See also: +'

  • +'

    Returns the sum of nums. (+') returns 0. Supports arbitrary precision. See also: +

-

  • -

    If no ys are supplied, returns the negation of x, else subtracts the ys from x and returns the result. Does not auto-p...

  • -'

    If no ys are supplied, returns the negation of x, else subtracts the ys from x and returns the result. Supports arbitr...

  • ->

    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...

  • ->>

    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 ...

  • ->Authenticator

    Constructs a `java.net.Authenticator`. Options: * `:user` - the username * `:pass` - the password

  • ->CookieHandler

    Constructs a `java.net.CookieHandler` using `java.net.CookieManager`. Options: * `:store` - an optional `java....

  • ->Eduction

    Positional factory function for class clojure.core.Eduction.

  • ->ErrorResult

    Positional factory function for class clojure.test.check.properties.ErrorResult.

  • ->Executor

    Constructs a `java.util.concurrent.Executor`. Options: * `:threads` - constructs a `ThreadPoolExecutor` with the...

  • ->Generator

    Positional factory function for class clojure.test.check.generators.Generator.

  • ->hiccup

    Turns a markdown string or document node into hiccup. Optionally takes `hiccup-renderers` as first argument.

  • ->ProxySelector

    Constructs a `java.net.ProxySelector`. Options: * `:host` - string * `:port` - long

  • ->root-string

    DEPRECATED. Renamed to [[root-string]].

  • ->RoseTree

    Positional factory function for class clojure.test.check.rose_tree.RoseTree.

  • ->SSLContext

    Constructs a `javax.net.ssl.SSLContext`. Options: * `:key-store` - a file, URI or URL or anything else that is com...

  • ->SSLParameters

    Constructs a `javax.net.ssl.SSLParameters`. Options: * `:ciphers` - a list of cipher suite names * `:protocol...

  • ->string

    DEPRECATED. Renamed to [[string]].

  • -log!

    Core low-level log fn. Private, don't use!

  • -vthread-call

    Executes f in another virtual thread, returning immediately to the calling thread. Returns a channel which will receiv...

.

  • .

    Host interop: field access or method call.

  • ..

    form => fieldName-symbol or (instanceMethodName-symbol args*) Expands into a member access (.) of the first member on...

/

  • /

    If no denominators are supplied, returns 1/numerator, else returns numerator divided by all of the denominators.

<

  • <

    Returns non-nil if nums are in monotonically increasing order, otherwise false.

  • <!

    takes a val from port. Will return nil if closed. Will block if nothing is available. Not intended for use in direct...

  • <!!

    takes a val from port. Will return nil if closed. Will block if nothing is available. Not intended for use in direct...

  • <<

    Resolves the variables from your template string from the local-env, or the namespace and puts them into your template...

  • <=

    Returns non-nil if nums are in monotonically non-decreasing order, otherwise false.

=

  • =

    Equality. Returns true if x equals y, false if not. Same as Java x.equals(y) except it also works for nil, and compare...

  • ==

    Returns non-nil if nums all have the equivalent value (type-independent), otherwise false

>

  • >

    Returns non-nil if nums are in monotonically decreasing order, otherwise false.

  • >!

    puts a val into port. nil values are not allowed. Will block if no buffer space is available. Returns true unless port...

  • >!!

    puts a val into port. nil values are not allowed. Will block if no buffer space is available. Returns true unless port...

  • >=

    Returns non-nil if nums are in monotonically non-increasing order, otherwise false.

A

  • abort!

    Closes this WebSocket's input and output abruptly.

  • abs

    Returns the absolute value of a. If a is Long/MIN_VALUE => Long/MIN_VALUE If a is a double and zero => +0.0 If a i...

  • absolute?

    Returns true if `f` represents an absolute path via [Path#isAbsolute](https://docs.oracle.com/en/java/javase/11/docs/api...

  • absolutize

    Converts `f` into an absolute `Path` via [Path#toAbsolutePath](https://docs.oracle.com/en/java/javase/11/docs/api/java.b...

  • accept-header

    Request: adds `:accept` header. Only supported value is `:json`.

  • acl

    Issues an async HTTP ACL request. See `request` for details.

  • aclone

    Returns a clone of the Java array. Works on arrays of known types.

  • acos

    Returns the arc cosine of a, in the range 0.0 to pi. If a is ##NaN or |a|>1 => ##NaN See: https://docs.oracle.com/ja...

  • add-class!

    Adds class (JVM class or JS object) to `ctx` as `class-name` (a symbol). Returns mutated context.

  • add-classpath

    Adds extra-classpath, a string as for example returned by clojure -Spath, to the current classpath.

  • add-deps

    Takes deps edn map and optionally a map with :aliases (seq of keywords) which will used to calculate classpath. The cl...

  • add-encoder

    Provide an encoder for a type not handled by Cheshire. ex. (add-encoder java.net.URL encode-string) See encode-s...

  • add-exact

    Returns the sum of x and y, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/api/jav...

  • add-import!

    Adds import of class named by `class-name` (a symbol) to namespace named by `ns-name` (a symbol) under alias `alias` (a ...

  • add-namespace!

    Adds namespace map `ns-map` named by the symbol `ns-name` to `ctx`. Returns mutated context.

  • add-tag!

    tag name, fn handler, and maybe tags

  • add-tap

    adds f, a fn of one argument, to the tap set. This function will be called with anything sent via tap>. This function ...

  • add-watch

    Adds a watch function to an agent/atom/var/ref reference. The watch fn must be a fn of 4 args: a key, the reference, i...

  • admix

    Adds ch as an input to the mix

  • agent

    Creates and returns an agent with an initial value of state and zero or more options (in any order): :meta metadata...

  • agent-error

    Returns the exception thrown during an asynchronous action of the agent if the agent is failed. Returns nil if the ag...

  • aget

    Returns the value at the index/indices. Works on Java arrays of all types.

  • aggregate-xmlns

    Put all occurring xmlns into the root

  • alength

    Returns the length of the Java array. Works on arrays of all types.

  • alias

    Add an alias in the current namespace to another namespace. Arguments are two symbols: the alias to be used, and the...

  • alias-uri

    Define a Clojure namespace aliases for xmlns uris. This sets up the current namespace for reading qnames denoted with...

  • alive?

    Returns `true` if the process is still running and false otherwise.

  • all-classes

    Returns every java.lang.Class instance Babashka supports.

  • all-ns

    Returns a sequence of all namespaces.

  • all-ns

    Returns all SCI ns objects in the `ctx`

  • alt!!

    Like alt!, except as if by alts!!, will block until completed, and not intended for use in (go ...) blocks.

  • alter

    Must be called in a transaction. Sets the in-transaction-value of ref to: (apply fun in-transaction-value-of-ref ar...

  • alter-meta!

    Atomically sets the metadata for a namespace/var/ref/agent/atom to be: (apply f its-current-meta args) f must be f...

  • alter-var-root

    Atomically alters the root binding of var v by applying f to its current value plus any args

  • alter-var-root

    Atomically alters the root binding of sci var v by applying f to its current value plus any args.

  • alts!

    Like alts!, except takes will be made as if by <!!, and puts will be made as if by >!!, will block until completed. ...

  • alts!!

    Like alts!, except takes will be made as if by <!!, and puts will be made as if by >!!, will block until completed. ...

  • amap

    Maps an expression across an array a, using an index named idx, and return value named ret, initialized to a clone of ...

  • ancestors

    Returns the immediate and indirect parents of tag, either via a Java type inheritance relationship or a relationship e...

  • and

    Evaluates exprs one at a time, from left to right. If a form returns logical false (nil or false), and returns that va...

  • any

    A recursive generator that will generate many different, often nested, values

  • any-equatable

    Like any, but only generates objects that can be equal to other objects (e.g., do not contain a NaN)

  • any-printable

    Like any, but avoids characters that the shell will interpret as actions, like 7 and 14 (bell and alternate character ...

  • any-printable-equatable

    Like any, but avoids characters that the shell will interpret as actions, like 7 and 14 (bell and alternate character ...

  • any?

    Returns true given any argument.

  • append-child

    Inserts the item as the rightmost child of the node at this loc, without moving

  • append-child

    Return `zloc` with `item` inserted as the last child of the current node in `zloc`, without moving location. If `item`...

  • append-child*

    Raw version of [[append-child]]. Returns zipper with node `item` inserted as the rightmost child of the current node in...

  • append-newline

    DEPRECATED: renamed to [[insert-newline-right]].

  • append-space

    DEPRECATED: renamed to [[insert-space-right]].

  • apply

    Applies fn f to the argument list formed by prepending intervening arguments to args.

  • are

    Checks multiple assertions with a template expression. See clojure.template/do-template for an explanation of templa...

  • areduce

    Reduces an expression across an array a, using an index named idx, and return value named ret, initialized to init, se...

  • array-map

    Constructs an array-map. If any keys are equal, they are handled as if by repeated uses of assoc.

  • as->

    Binds name to expr, evaluates the first form in the lexical context of that binding, then binds name to that result, r...

  • as-channel

    Returns `{:body ch}`, where `ch` is the request's underlying asynchronous HTTP or WebSocket `AsyncChannel`. Main op...

  • as-file

    Coerce argument to a file.

  • as-relative-path

    Take an as-file-able thing and return a string if it is a relative path, else IllegalArgumentException.

  • as-url

    Coerce argument to a URL.

  • aset

    Sets the value at the index/indices. Works on Java arrays of reference types. Returns val.

  • aset-boolean

    Sets the value at the index/indices. Works on arrays of boolean. Returns val.

  • aset-byte

    Sets the value at the index/indices. Works on arrays of byte. Returns val.

  • aset-char

    Sets the value at the index/indices. Works on arrays of char. Returns val.

  • aset-double

    Sets the value at the index/indices. Works on arrays of double. Returns val.

  • aset-float

    Sets the value at the index/indices. Works on arrays of float. Returns val.

  • aset-int

    Sets the value at the index/indices. Works on arrays of int. Returns val.

  • aset-long

    Sets the value at the index/indices. Works on arrays of long. Returns val.

  • aset-short

    Sets the value at the index/indices. Works on arrays of short. Returns val.

  • asin

    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 w...

  • assert

    Evaluates expression x and throws an AssertionError with optional message if x does not evaluate to logical true. A...

  • assert

    SCI var that represents SCI's clojure.core/*assert*

  • assert-any

    Returns generic assertion code for any test, including macros, Java method calls, or isolated symbols.

  • assert-predicate

    Returns generic assertion code for any functional predicate. The 'expected' argument to 'report' will contains the or...

  • assoc

    assoc[iate]. When applied to a map, returns a new map of the same (hashed/sorted) type, that contains the mapping of...

  • assoc

    Returns `zloc` with current node's `k` set to value `v`. `zloc` location is unchanged. `k` should be: - a key fo...

  • assoc!

    When applied to a transient map, adds mapping of key(s) to val(s). When applied to a transient vector, sets the val at...

  • assoc-in

    Associates a value in a nested associative structure, where ks is a sequence of keys and v is the new value and return...

  • associative?

    Returns true if coll implements Associative

  • atan

    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 sa...

  • atan2

    Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta). Compute...

  • atom

    Creates and returns an Atom with an initial value of x and zero or more options (in any order): :meta metadata-map ...

  • auto-coerce

    Auto-coerces `s` to data. Does not coerce when `s` is not a string. If `s`: * is `true` or `false`, it is coerced as...

  • await

    Blocks the current thread (indefinitely!) until all actions dispatched thus far, from this thread or agent, to the age...

  • await-for

    Blocks the current thread until all actions dispatched thus far (from this thread or agent) to the agents have occurre...

B

  • backtrack

    Pre-allocated exception used for backtracing

  • barf-backward

    Returns `zloc` with leftmost node of the parent sequence pushed left out of the sequence. - `[1 2 [3 |4] 5] => [1 2 3...

  • barf-forward

    Returns `zloc` with rightmost node of the parent sequence pushed right out of the sequence. Comments and newlines pre...

  • basic-auth

    Request: adds `:authorization` header based on `:basic-auth` (a map of `:user` and `:pass`) in request.

  • bean

    Takes a Java object and returns a read-only implementation of the map abstraction based upon its JavaBean properties.

  • big-ratio

    Generates a ratio (or integer) using gen/size-bounded-bigint. Shrinks toward simpler ratios, which may be larger or sm...

  • bigdec

    Coerce to BigDecimal

  • bigint

    Coerce to BigInt

  • biginteger

    Coerce to BigInteger

  • bind

    Creates a new generator that passes the result of `gen` into function `f`. `f` should return a new generator. This all...

  • bind

    Takes a Rose tree (m) and a function (k) from values to Rose tree and returns a new Rose tree. This is the monadic b...

  • binding

    binding => var-symbol init-expr Creates new bindings for the (already-existing) vars, with the supplied initial val...

  • binding

    Macro for binding sci vars. Must be called with a vector of sci dynamic vars to values.

  • bit-and

    Bitwise and

  • bit-and-not

    Bitwise and with complement

  • bit-clear

    Clear bit at index n

  • bit-flip

    Flip bit at index n

  • bit-not

    Bitwise complement

  • bit-or

    Bitwise or

  • bit-set

    Set bit at index n

  • bit-shift-left

    Bitwise shift left

  • bit-shift-right

    Bitwise shift right

  • bit-test

    Test bit at index n

  • bit-xor

    Bitwise exclusive or

  • blank?

    True if s is nil, empty, or contains only whitespace.

  • boolean

    Coerce to boolean

  • boolean

    Generates one of `true` or `false`. Shrinks to `false`.

  • boolean-array

    Creates an array of booleans

  • boolean?

    Return true if x is a Boolean

  • booleans

    Casts to boolean[]

  • bound-fn

    Returns a function defined by the given fntail, which will install the same bindings in effect as in the thread at the...

  • bound-fn*

    Returns a function, which will install the same bindings in effect as in the thread at the time bound-fn* was called a...

  • bound?

    Returns true if all of the vars provided as arguments have any bound value, root or thread-local. Implies that deref'...

  • bounded-count

    If coll is counted? returns its count, else will count at most the first n elements of coll using its seq

  • branch?

    Returns true if the node at loc is a branch

  • buffer

    Returns a fixed buffer of size n. When full, puts will block/park.

  • butlast

    Return a seq of all but the last item in coll, in linear time

  • byte

    Coerce to byte

  • byte

    Generates `java.lang.Byte`s, using the full byte-range.

  • byte-array

    Creates an array of bytes

  • bytes

    Casts to bytes[]

  • bytes

    Generates byte-arrays.

  • bytes?

    Return true if x is a byte array

C

  • call-gen

    Internal function.

  • canonicalize

    Returns the canonical `Path` for `f` via [File#getCanonicalPath](https://docs.oracle.com/en/java/javase/11/docs/api/java...

  • capitalize

    Converts first character of the string to upper-case, all other characters to lower-case.

  • case

    Takes an expression, and a set of clauses. Each clause can take the form of either: test-constant result-expr (...

  • cat

    A transducer which concatenates the contents of each input, which must be a collection, into the reduction.

  • catching

    Terse, cross-platform (try* expr (catch :all _)). Arities besides #{1 2} are deprecated, prefer `try*` in these c...

  • cbrt

    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 mat...

  • cdata

    Create a CData node

  • ceil

    Returns the smallest double greater than or equal to a, and equal to a mathematical integer. If a is ##NaN or ##Inf ...

  • chan

    Creates a channel with an optional buffer, an optional transducer (like (map f), (filter p) etc or a composition there...

  • char

    Coerce to char

  • char

    Generates character from 0-255.

  • char-alpha

    Generates alpha characters.

  • char-alpha-numeric

    Deprecated - use char-alphanumeric instead. Generates alphanumeric characters.

  • char-alphanumeric

    Generates alphanumeric characters.

  • char-array

    Creates an array of chars

  • char-ascii

    Generates only ascii characters.

  • char-escape-string

    Returns escape string for char or nil if none

  • char-name-string

    Returns name string for char or nil if none

  • char?

    Return true if x is a Character

  • chars

    Casts to chars[]

  • check

    Takes a process, waits until is finished and throws if exit code is non-zero.

  • child-sexprs

    Returns children for `node` converted to Clojure forms. Optional `opts` can specify: - `:auto-resolve` specify a fu...

  • child-sexprs

    Return s-expression (the Clojure forms) of children of current node in `zloc`. See docs for [sexpr nuances](/doc/01-u...

  • children

    Returns the children of the root of the Rose tree.

  • children

    Returns a seq of the children of node at loc, which must be a branch

  • children

    Returns child nodes for `node`.

  • choose

    Creates a generator that generates integers uniformly in the range `lower` to `upper`, inclusive. (gen/sa...

  • cl-format

    An implementation of a Common Lisp compatible format function. cl-format formats its arguments to an output stream or st...

  • class

    Returns the Class of x

  • class?

    Returns true if x is an instance of Class

  • client

    Construct a custom client. To get the same behavior as the (implicit) default client, pass `default-client-opts`. Opt...

  • clojure

    Starts clojure similar to CLI. Use `rlwrap bb` for `clj`-like invocation. Invokes java with babashka.process/process f...

  • clojure-version

    Returns clojure version as a printable string.

  • close

    Closes the channel. Idempotent: returns true if the channel was actually closed, or false if it was already closed.

  • close!

    Initiates an orderly closure of this WebSocket's output by sending a Close message with the given status code and the ...

  • close!

    Closes a channel. The channel will no longer accept any puts (they will be ignored). Data in the channel remains avail...

  • code-dispatch

    The pretty print dispatch function for pretty printing Clojure code.

  • coerce

    Coerce string `s` using `f`. Does not coerce when `s` is not a string. `f` may be a keyword (`:boolean`, `:int`, `:dou...

  • coerce

    Coerce `form` to node.

  • coll?

    Returns true if x implements IPersistentCollection

  • collapse

    Return a new rose-tree whose depth-one children are the children from depth one _and_ two of the input tree.

  • comma-node

    Create comma node of string `s`, where `s` is one or more comma characters.

  • comma-separated

    Interleave `nodes` with `", "` nodes.

  • comma?

    Returns true if `node` represents one or more commas.

  • comment

    Ignores body, yields nil

  • comment-node

    Create node representing a comment with text `s`. You may optionally specify a `prefix` of `";"` or `"#!"`, defaults...

  • comment?

    Returns true if `node` is a comment.

  • commute

    Must be called in a transaction. Sets the in-transaction-value of ref to: (apply fun in-transaction-value-of-ref ar...

  • comp

    Takes a set of functions and returns a fn that is the composition of those fns. The returned fn takes a variable numb...

  • comparator

    Returns an implementation of java.util.Comparator based upon pred.

  • compare

    Comparator. Returns a negative number, zero, or a positive number when x is logically 'less than', 'equal to', or 'gre...

  • compare-and-set!

    Atomically sets the value of atom to newval if and only if the current value of the atom is identical to oldval. Retur...

  • complement

    Takes a fn f and returns a fn that takes the same arguments as f, has the same effects, if any, and returns the opposi...

  • completing

    Takes a reducing function f of 2 args and returns a fn suitable for transduce by adding an arity-1 signature that call...

  • components

    Returns a seq of all components of `f` as paths. i.e.: split on the [[file-separator]].

  • compose-fixtures

    Composes two fixture functions, creating a new fixture function that combines their behavior.

  • concat

    Returns a lazy seq representing the concatenation of the elements in the supplied colls.

  • cond

    Takes a set of test/expr pairs. It evaluates each test one at a time. If a test returns logical true, cond evaluates ...

  • cond->

    Takes an expression and a set of test/form pairs. Threads expr (via ->) through each form for which the corresponding ...

  • cond->>

    Takes an expression and a set of test/form pairs. Threads expr (via ->>) through each form for which the corresponding...

  • condp

    Takes a binary predicate, an expression, and a set of clauses. Each clause can take the form of either: test-expr r...

  • conj

    conj[oin]. Returns a new collection with the xs 'added'. (conj nil item) returns (item). (conj coll) returns col...

  • conj!

    Adds x to the transient collection, and return coll. The 'addition' may happen at different 'places' depending on the ...

  • cons

    Returns a new seq where x is the first element and seq is the rest.

  • constantly

    Returns a function that takes any number of arguments and returns x.

  • construct-uri

    Request: construct uri from map

  • contains?

    Returns true if key is present in the given collection, otherwise returns false. Note that for numerically indexed co...

  • continue

    Singleton value to be used as return value in `:read-cond` fn to indicate to continue parsing the next form

  • copy

    Copies `src` file to `dest` dir or file using [Files/copy](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/...

  • copy

    Copies input to output. Returns nil or throws IOException. Input may be an InputStream, Reader, File, byte[], char[],...

  • copy

    Issues an async HTTP COPY request. See `request` for details.

  • copy-ns

    Returns map of names to SCI vars as a result of copying public Clojure vars from ns-sym (a symbol). Attaches sci-ns (r...

  • copy-sign

    Returns a double with the magnitude of the first argument and the sign of the second. See: https://docs.oracle.com/j...

  • copy-tree

    Copies entire file tree from `src` to `dest`. Creates `dest` if needed using [[create-dirs]], passing it the `:posix-f...

  • copy-var

    Copies contents from var `sym` to a new sci var. The value `ns` is an object created with `sci.core/create-ns`. Opt...

  • copy-var*

    Copies Clojure var to SCI var. Runtime analog of compile time `copy-var`.

  • cos

    Returns the cosine of an angle. If a is ##NaN, ##-Inf, ##Inf => ##NaN See: https://docs.oracle.com/javase/8/docs/api...

  • cosh

    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 i...

  • count

    Returns the number of items in the collection. (count nil) returns 0. Also works on strings, arrays, and Java Collect...

  • counted?

    Returns true if coll implements count in constant time

  • create-dir

    Creates dir using [Files/createDirectory](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Fil...

  • create-dirs

    Creates directories for `path` using [Files/createDirectories](https://docs.oracle.com/en/java/javase/11/docs/api/java.b...

  • create-file

    Creates empty file at `path` using [Files/createFile](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/...

  • create-link

    Create a new `link` (directory entry) for an `existing` file via [Files/createLink](https://docs.oracle.com/en/java/java...

  • create-ns

    Create a new namespace named by the symbol if one doesn't already exist, returns it or the already-existing namespace ...

  • create-ns

    Creates namespace object. Can be used in var metadata.

  • create-pretty-printer

    Returns an instance of CustomPrettyPrinter based on the configuration provided as argument

  • create-sym-link

    Create a symbolic `link` to `target` via [Files/createSymbolicLink](https://docs.oracle.com/en/java/javase/11/docs/api/j...

  • create-temp-dir

    Creates a directory using [Files/createTempDirectory](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/...

  • create-temp-file

    Creates an empty file using [Files/createTempFile](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio...

  • creation-time

    Returns creation time of `f` as [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/at...

  • cwd

    Returns current working directory as `Path`

  • cycle

    Returns a lazy (infinite!) sequence of repetitions of the items in coll.

D

  • debug

    Debug level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • debug

    Debug level logging using print-style args. See logp for details.

  • debugf

    Debug level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • debugf

    Debug level logging using format. See logf for details.

  • dec

    Returns a number one less than num. Does not auto-promote longs, will throw on overflow. See also: dec'

  • dec'

    Returns a number one less than num. Supports arbitrary precision. See also: dec

  • decimal?

    Returns true if n is a BigDecimal

  • declare

    defs the supplied var names with no bindings, useful for making forward declarations.

  • decode

    Returns the Clojure object corresponding to the given JSON-encoded string. An optional key-fn argument can be either t...

  • decode-body

    Response: based on the value of `:as` in request, decodes as `:string`, `:stream` or `:bytes`. Defaults to `:string`.

  • decompress-body

    Response: decompresses body based on "content-encoding" header. Valid values: `gzip` and `deflate`.

  • decrement-exact

    Returns a decremented by 1, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/api/jav...

  • dedupe

    Returns a lazy sequence removing consecutive duplicates in coll. Returns a transducer when no collection is provided.

  • def

    Creates and interns or locates a global var.

  • default-client-opts

    Options used to create the (implicit) default client.

  • default-data-readers

    Default map of data reader functions provided by Clojure. May be overridden by binding *data-readers*.

  • default-hiccup-renderers

    Default map of node type -> hiccup renderers, to be used with `->hiccup`

  • default-interceptors

    Default interceptor chain. Interceptors are called in order for request and in reverse order for response.

  • default-write-handlers

    Returns a map of default WriteHandlers for Clojure types. Java types are handled by the default WriteHandlers prov...

  • defmacro

    Like defn, but the resulting function name is declared as a macro and will be used as a macro by the compiler when it ...

  • defmethod

    Creates and installs a new method of multimethod associated with dispatch-value.

  • defmulti

    Creates a new multimethod with the associated dispatch function. The docstring and attr-map are optional. Options a...

  • defn

    Same as (def name (fn [params* ] exprs*)) or (def name (fn ([params* ] exprs*)+)) with any doc-string or attrs added...

  • defn-

    same as defn, yielding non-public def

  • defonce

    defs name to have the root value of the expr iff the named var has no root value, else expr is unevaluated

  • defprotocol

    A protocol is a named set of named methods and their signatures: (defprotocol AProtocolName ;optional doc string ...

  • defrecord

    (defrecord name [fields*] options* specs*) Options are expressed as sequential keywords and arguments (in any order)...

  • deftest

    Defines a test function with no arguments. Test functions may call other tests, so tests may be composed. If you com...

  • deftest-

    Like deftest but creates a private var.

  • deftype

    (deftype name [fields*] options* specs*) Options are expressed as sequential keywords and arguments (in any order). ...

  • delay

    Takes a body of expressions and yields a Delay object that will invoke the body only the first time it is forced (with...

  • delay?

    returns true if x is a Delay created with delay

  • delete

    Deletes `f` using [Files/delete](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Files.html#d...

  • delete

    Convenience wrapper for `request` with method `:delete`

  • delete

    Issues an async HTTP DELETE request. See `request` for details.

  • delete-file

    Delete file f. If silently is nil or false, raise an exception on failure, else return the value of silently.

  • delete-if-exists

    Deletes `f` if it exists via [Files/deleteIfExists](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/ni...

  • delete-on-exit

    Requests delete of file `f` on exit via [File#deleteOnExit](https://docs.oracle.com/en/java/javase/11/docs/api/java.base...

  • delete-tree

    Deletes a file tree `root` using [[walk-file-tree]]. Similar to `rm -rf`. Does not follow symlinks. `force` ensures r...

  • deliver

    Delivers the supplied value to the promise, releasing any pending derefs. A subsequent call to deliver on a promise wi...

  • demunge

    Given a string representation of a fn class, as in a stack trace element, returns a readable version.

  • denominator

    Returns the denominator part of a Ratio.

  • deref

    Also reader macro: @ref/@agent/@var/@atom/@delay/@future/@promise. Within a transaction, returns the in-transaction-va...

  • deref-node

    Create node representing the dereferencing of a form where `children` is either a sequence of nodes or a single node....

  • derive

    Establishes a parent/child relationship between parent and tag. Parent must be a namespace-qualified symbol or keyword...

  • descendants

    Returns the immediate and indirect children of tag, through a relationship established via derive. h must be a hierarc...

  • destroy

    Destroys the process and returns the input arg. Takes process or map with :proc (`java.lang.ProcessBuilder`).

  • destroy-tree

    Same as `destroy` but also destroys all descendants. JDK9+ only. Falls back to `destroy` on older JVM versions.

  • diff

    Recursively compares a and b, returning a tuple of [things-only-in-a things-only-in-b things-in-both]. Comparison ru...

  • difference

    Return a set that is the first set without elements of the remaining sets

  • directory?

    Returns true if `f` is a directory, using [Files/isDirectory](https://docs.oracle.com/en/java/javase/11/docs/api/java.ba...

  • disj

    disj[oin]. Returns a new set of the same (hashed/sorted) type, that does not contain key(s).

  • disj!

    disj[oin]. Returns a transient set of the same (hashed/sorted) type, that does not contain key(s).

  • dispatch

    Subcommand dispatcher. Dispatches on longest matching command entry in `table` by matching subcommands to the `:cmd...

  • dissoc

    dissoc[iate]. Returns a new map of the same (hashed/sorted) type, that does not contain a mapping for key(s).

  • dissoc!

    Returns a transient map that doesn't contain a mapping for key(s).

  • distinct

    Returns a lazy sequence of the elements of coll with duplicates removed. Returns a stateful transducer when no collect...

  • distinct?

    Returns true if no two of the arguments are =

  • do

    Evaluates expressions in order, returning the last.

  • do-alts

    returns derefable [val port] if immediate, nil if enqueued

  • do-report

    Add file and line information to a test result and call report. If you are writing a custom assert-expr method, call ...

  • doall

    When lazy sequences are produced via functions that have side effects, any effects other than those needed to produce ...

  • dorun

    When lazy sequences are produced via functions that have side effects, any effects other than those needed to produce ...

  • doseq

    Repeatedly executes body (presumably for side-effects) with bindings and filtering as provided by "for". Does not ret...

  • dosync

    Runs the exprs (in an implicit do) in a transaction that encompasses exprs and any nested calls. Starts a transaction...

  • dotimes

    bindings => name n Repeatedly executes body (presumably for side-effects) with name bound to integers from 0 throug...

  • doto

    Evaluates x then calls all of the methods and functions with the value of x supplied at the front of the given argumen...

  • double

    Coerce to double

  • double

    Generates 64-bit floating point numbers from the entire range, including +/- infinity and NaN. Use double* for more co...

  • double*

    Generates a 64-bit floating point number. Options: :infinite? - whether +/- infinity can be generated (default true...

  • double-array

    Creates an array of doubles

  • double?

    Return true if x is a Double

  • doubles

    Casts to double[]

  • down

    Returns the loc of the leftmost child of the node at this loc, or nil if no children

  • down

    Return zipper with location moved down to the first non-whitespace/non-comment child node of the current node in `zloc`,...

  • down*

    Raw version of [[down]]. Returns zipper with the location at the leftmost child of current node in `zloc`, or nil if ...

  • drop

    Returns a laziness-preserving sequence of all but the first n items in coll. Returns a stateful transducer when no col...

  • drop-last

    Return a lazy sequence of all but the last n (default 1) items in coll

  • drop-while

    Returns a lazy sequence of the items in coll starting from the first item for which (pred item) returns logical false....

  • dropping-buffer

    Returns a buffer of size n. When full, puts will complete but val will be dropped (no transfer).

E

  • E

    Constant for e, the base for natural logarithms. See: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#E

  • edit

    Replaces the node at this loc with the value of (f node args)

  • edit

    Return `zloc` with the current node replaced with the result of: `(apply f (s-expr current-node) args)` The resul...

  • edit*

    Raw version of [[edit]]. Returns zipper with value of `(apply f current-node args)` replacing current node in `zloc`. ...

  • edit->

    Like `->`, threads `zloc` through forms. The resulting zipper will be located at the same path (i.e. the same numb...

  • edit->

    Like `->`, threads `zloc` through forms. The resulting zipper will be located at the same path (i.e. the same numb...

  • edit->>

    Like `->>`, threads `zloc` through forms. The resulting zipper will be located at the same path (i.e. the same num...

  • edit->>

    Like `->>`, threads `zloc` through forms. The resulting zipper will be located at the same path (i.e. the same num...

  • edit-node

    Return zipper applying function `f` to `zloc`. The resulting zipper will be located at the same path (i.e. the same n...

  • edit-node

    Return zipper applying function `f` to `zloc`. The resulting zipper will be located at the same path (i.e. the same n...

  • edn

    DEPRECATED. Renamed to [[of-node]].

  • edn*

    DEPRECATED. Renamed to [[of-node*]].

  • eduction

    Returns a reducible/iterable application of the transducers to the items in coll. Transducers are applied in order as ...

  • element

    Create an xml Element from content varargs

  • element*

    Create an xml element from a content collection and optional metadata

  • element-nss

    Get xmlns environment from element

  • elements

    Creates a generator that randomly chooses an element from `coll`. (gen/sample (gen/elements [:foo :bar :baz])) ...

  • emit

    Prints the given Element tree as XML text to stream. Options: :encoding <str> Character encoding to use ...

  • emit-str

    Emits the Element to String and returns it. Options: :encoding <str> Character encoding to use :doct...

  • empty

    Returns an empty collection of the same category as coll, or nil

  • empty-doc

    Empty document to be used with `parse*`

  • empty-doc

    The empty doc

  • empty?

    Returns true if coll has no items. To check the emptiness of a seq, please use the idiom (seq x) rather than (not (emp...

  • enable-unrestricted-access!

    Calling this will enable - Altering core vars using `alter-var-root` - In CLJS: `set!` is able to set the value of a...

  • enabled?

    Check if a particular level is enabled for the given Logger.

  • encode

    Returns a JSON-encoding String for the given Clojure object. Takes an optional date format string that Date objects wi...

  • encode-str

    Encode a string to the json generator.

  • encode-stream

    Returns a BufferedWriter for the given Clojure object with the JSON-encoded data written to the writer. Takes an optio...

  • end?

    Returns true if loc represents the end of a depth-first walk

  • end?

    Return true if `zloc` is at end of depth-first traversal.

  • ends-with?

    Returns `true` if path `this` ends with path `other` via [Path#endsWith](https://docs.oracle.com/en/java/javase/11/docs/...

  • ends-with?

    True if s ends with substr.

  • ensure

    Must be called in a transaction. Protects the ref from modification by other transactions. Returns the in-transaction...

  • ensure-list

    Turns the argument into a list if it isn't a list already.

  • ensure-reduced

    If x is already reduced?, returns it, else returns (reduced x)

  • enumeration-seq

    Returns a seq on a java.util.Enumeration

  • env-map

    Puts &env into a map.

  • equality-partition

    Implementation detail. Subject to change.

  • err

    SCI var that represents SCI's `clojure.core/*err*`

  • error

    Error level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • error

    Error level logging using print-style args. See logp for details.

  • error-handler

    Returns the error-handler of agent a, or nil if there is none. See set-error-handler!

  • error-mode

    Returns the error-mode of agent a. See set-error-mode!

  • errorf

    Error level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • errorf

    Error level logging using format. See logf for details.

  • escape

    Return a new string, using cmap to escape each character ch from s as follows: If (cmap ch) is nil, append ch ...

  • eval

    Evaluates the form data structure (not text!) and returns the result.

  • eval-form

    Evaluates form (as produced by `parse-string` or `parse-next`) in the context of `ctx` (as produced with `init`). To a...

  • eval-node

    Create node representing an inline evaluation where `children` is either a sequence of nodes or a single node. ``...

  • eval-string

    Evaluates string `s` as one or multiple Clojure expressions using the Small Clojure Interpreter. The map `opts` may c...

  • eval-string*

    Evaluates string `s` in the context of `ctx` (as produced with `init`).

  • eval-string+

    Evaluates string `s` in the context of `ctx` (as produced with `init`). Options: *`:ns` - the namespace to start ...

  • even?

    Returns true if n is even, throws an exception if n is not an integer

  • event-seq

    Parses an XML input source into a lazy sequence of pull events. Input source can be a java.io.InputStream or java.io.Re...

  • every-pred

    Takes a set of predicates and returns a function f that returns true if all of its composing predicates return a logic...

  • every?

    Returns true if (pred x) is logical true for every x in coll, else false.

  • ex-cause

    Returns the cause of ex if ex is a Throwable. Otherwise returns nil.

  • ex-data

    Returns exception data (a map) if ex is an IExceptionInfo. Otherwise returns nil.

  • ex-info

    Create an instance of ExceptionInfo, a RuntimeException subclass that carries a map of additional data.

  • ex-message

    Returns the message attached to ex if ex is a Throwable. Otherwise returns nil.

  • exec

    Replaces the current process image with the process image specified by the given path invoked with the given args. Wor...

  • exec

    Execute a command and on successful exit, return the captured output, else throw RuntimeException. Args are the same a...

  • exec-paths

    Returns executable paths (using the `PATH` environment variable). Same as `(split-paths (System/getenv "PATH"))`.

  • executable?

    Returns true if `f` has is executable via [Files/isExecutable](https://docs.oracle.com/en/java/javase/11/docs/api/java.b...

  • execute-format

    Executes the format with the arguments.

  • exists?

    Returns true if `f` exists via [Files/exists](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file...

  • exit-ref

    Given a Process (the output of 'start'), return a reference that can be used to wait for process completion then retur...

  • exp

    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 =>...

  • expand-home

    If `f` begins with a tilde (`~`), expand the tilde to the value of the `user.home` system property. If the `f` begins ...

  • expm1

    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 => #In...

  • extend

    Implementations of protocol methods can be provided using the extend construct: (extend AType AProtocol {:fo...

  • extend-protocol

    Useful when you want to provide several implementations of the same protocol all at once. Takes a single protocol and ...

  • extend-type

    A macro that expands into an extend call. Useful when you are supplying the definitions explicitly inline, extend-type...

  • extends?

    Returns true if atype extends protocol

  • extension

    Returns the extension of `path` via [[split-ext]].

F

  • false?

    Returns true if x is the value false, false otherwise.

  • fatal

    Fatal level logging using print-style args. See logp for details.

  • fatalf

    Fatal level logging using format. See logf for details.

  • ffirst

    Same as (first (first x))

  • file

    Coerces arg(s) into a `File`, combining multiple paths into one. Multiple-arg versions treat the first argument as par...

  • file

    Returns a java.io.File, passing each arg to as-file. Multiple-arg versions treat the first argument as parent and su...

  • file

    SCI var that represents SCI's `clojure.core/*file*`

  • file-name

    Returns the name of the file or directory via [File#getName](https://docs.oracle.com/en/java/javase/11/docs/api/java.bas...

  • file-separator

    The system-dependent default name-separator character (as string)

  • file-seq

    A tree seq on java.io.Files

  • file-time->instant

    Converts `ft` [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/attribute/FileTime.h...

  • file-time->millis

    Converts `ft` [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/attribute/FileTime.h...

  • filter

    Returns a lazy sequence of the items in coll for which (pred item) returns logical true. pred must be free of side-eff...

  • filter

    Returns a new Rose tree whose values pass `pred`. Values who do not pass `pred` have their children cut out as well.

  • filter-tag

    Compile-time parser of var tag filters.

  • filter<

    Deprecated - this function will be removed. Use transducer instead

  • filter>

    Deprecated - this function will be removed. Use transducer instead

  • filterv

    Returns a vector of the items in coll for which (pred item) returns logical true. pred must be free of side-effects.

  • find

    Returns the map entry for key, or nil if key not present.

  • find

    Return `zloc` located to the first node satisfying predicate `p?` else nil. Search starts at the current node and con...

  • find-depth-first

    Return `zloc` located to the first node satisfying predicate `p?` else `nil`. Search is depth-first from the current ...

  • find-last-by-pos

    Return `zloc` located at the last node spanning position `pos` that satisfies the predicate `p?`, else `nil`. - `zloc...

  • find-next

    Return `zloc` located to the next node satisfying predicate `p?` else `nil`. Search starts one movement `f` from the ...

  • find-next-depth-first

    Return `zloc` located to next node satisfying predicate `p?` else `nil`. Search starts depth-first after the current ...

  • find-next-tag

    Return `zloc` located to the next node with tag `t` else `nil`. Search starts one movement `f` after the current node ...

  • find-next-token

    Return `zloc` located to the next token node satisfying predicate `p?` else `nil`. Search starts one movement `f` afte...

  • find-next-value

    Return `zloc` located to the next token node that `sexpr`esses to `v` else `nil`. Search starts one movement `f` from...

  • find-ns

    Returns the namespace named by the symbol or nil if it doesn't exist.

  • find-ns

    Returns SCI ns object as created with `sci/create-ns` from `ctx` found by `ns-sym`.

  • find-tag

    Return `zloc` located to the first node with tag `t` else `nil`. Search starts at the current node and continues via ...

  • find-tag-by-pos

    Return `zloc` located at the last node spanning position `pos` with tag `t`, else `nil`. - `zloc` location is (inclus...

  • find-token

    Return `zloc` located to the the first token node satisfying predicate `p?`. Search starts at the current node and con...

  • find-value

    Return `zloc` located to the first token node that `sexpr`esses to `v` else `nil`. Search starts from the current nod...

  • find-var

    Returns the global var named by the namespace-qualified symbol, or nil if no var with that name.

  • find-xmlns

    Find all xmlns occuring in a root

  • first

    Returns the first item in the collection. Calls seq on its argument. If coll is nil, returns nil.

  • flatten

    Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat ...

  • float

    Coerce to float

  • float-array

    Creates an array of floats

  • float?

    Returns true if n is a floating point number

  • floats

    Casts to float[]

  • floor

    Returns the largest double less than or equal to a, and equal to a mathematical integer. If a is ##NaN or ##Inf or #...

  • floor-div

    Integer division that rounds to negative infinity (as opposed to zero). The special case (floorDiv Long/MIN_VALUE -1) ...

  • floor-mod

    Integer modulus x - (floorDiv(x, y) * y). Sign matches y and is in the range -|y| < r < |y|. See: https://docs.oracl...

  • flush

    Flushes the output stream that is the current value of *out*

  • fmap

    Returns a generator like `gen` but with values transformed by `f`. E.g.: (gen/sample (gen/fmap str gen/nat)) ...

  • fmap

    Applies functions `f` to all values in the tree.

  • fn

    params => positional-params*, or positional-params* & rest-param positional-param => binding-form rest-param => bind...

  • fn-node

    Create node representing an anonymous function with `children`. ```Clojure (require '[rewrite-clj.node :as n]) ...

  • fn?

    Returns true if x implements Fn, i.e. is an object created via fn.

  • fnext

    Same as (first (next x))

  • fnil

    Takes a function f, and returns a function that calls f, replacing a nil first argument to f with the supplied value x...

  • for

    List comprehension. Takes a vector of one or more binding-form/collection-expr pairs, each followed by zero or more ...

  • for-all

    Returns a property, which is the combination of some generators and an assertion that should be true for all generated...

  • for-all*

    A function version of `for-all`. Takes a sequence of N generators and a function of N args, and returns a property tha...

  • force

    If x is a Delay, returns the (possibly cached) value of its expression, else returns x

  • fork

    Forks a context (as produced with `init`) into a new context. Any new vars created in the new context won't be visible...

  • form-params

    Request: encodes `:form-params` map and adds `:body`.

  • format

    Formats a string using java.lang.String.format, see java.util.Formatter for format string syntax

  • format-lines

    Format a sequence of summary parts into columns. lens is a sequence of lengths to use for parts. There are two sequenc...

  • format-stacktrace

    Returns a list of formatted stack trace elements as strings from stacktrace.

  • formatter-out

    Makes a function which can directly run format-in. The function is fn [& args] ... and returns nil. This version of the ...

  • forms-node

    Create top-level node wrapping multiple `children`. The forms node is equivalent to an implicit `do` at the top-level...

  • frequencies

    Returns a map from distinct items in coll to the number of times they appear.

  • frequency

    Creates a generator that chooses a generator from `pairs` based on the provided likelihoods. The likelihood of a given...

  • from-file

    Coerce f to a file per clojure.java.io/file and return a ProcessBuilder.Redirect reading from the file. This can be pa...

  • function?

    Returns true if argument is a function or a symbol that resolves to a function (not a macro).

  • future

    Takes a body of expressions and yields a future object that will invoke the body in another thread, and will cache the...

  • future

    Like clojure.core/future but also conveys sci bindings to the thread.

  • future-call

    Takes a function of no args and yields a future object that will invoke the function in another thread, and will cache...

  • future-cancel

    Cancels the future, if possible.

  • future-cancelled?

    Returns true if future f is cancelled

  • future-done?

    Returns true if future f is done

  • future?

    Returns true if x is a future

G

  • gen-bind

    Internal function.

  • gen-fmap

    Internal function.

  • gen-pure

    Internal function.

  • generate

    Returns a single sample value from the generator. Note that this function is a dev helper and is not meant to be used...

  • generate-stream

    Returns a BufferedWriter for the given Clojure object with the JSON-encoded data written to the writer. Takes an optio...

  • generate-stream

    Dump Clojure `data` structure as YAML to `writer`. See [[generate-string]] for `& opts`

  • generate-string

    Returns a JSON-encoding String for the given Clojure object. Takes an optional date format string that Date objects wi...

  • generate-string

    Return a string of YAML from Clojure `data` structure. Relevant `& opts` (`opts` are keyword args, see [docs](/doc/01...

  • generator?

    Test if `x` is a generator. Generators should be treated as opaque values.

  • gensym

    Returns a new symbol with a unique name. If a prefix string is supplied, the name is prefix# where # is some unique nu...

  • get

    Convenience wrapper for `request` with method `:get`

  • get

    Returns the value mapped to key, not-found or nil if key not present in associative collection, set, string, array, or...

  • get

    Issues an async HTTP GET request. See `request` for details.

  • get

    Returns `zloc` located to map key node's sexpr value matching `k` else `nil`. `k` should be: - a key for maps - a...

  • get-attribute

    Return `attribute` for `path` via [Files/getAttribute](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java...

  • get-classpath

    Returns the current classpath as set by --classpath, BABASHKA_CLASSPATH and add-classpath.

  • get-column-number

    Returns the column number of the next character to be read from the stream

  • get-default-options

    Extract the map of default options from a sequence of option vectors. As of 0.4.1, this also applies any :default-fn ...

  • get-exponent

    Returns the exponent of d. If d is ##NaN, ##Inf, ##-Inf => Double/MAX_EXPONENT + 1 If d is zero or subnormal => Doub...

  • get-in

    Returns the value in a nested associative structure, where ks is a sequence of keys. Returns nil if the key is not p...

  • get-line-number

    Returns the line number of the next character to be read from the stream

  • get-logger

    Returns an implementation-specific Logger by namespace.

  • get-method

    Given a multimethod and a dispatch value, returns the dispatch fn that would apply to that value, or nil if none apply...

  • get-pretty-writer

    Returns the java.io.Writer passed in wrapped in a pretty writer proxy, unless it's already a pretty writer. Generally, ...

  • get-thread-bindings

    Get a map with the Var/value pairs which is currently in effect for the current thread.

  • get-validator

    Gets the validator-fn for a var/ref/agent/atom.

  • glob

    Returns a vector of paths matching glob `pattern` (on path and filename) relative to `root` dir. Patterns containing `...

  • group-by

    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...

  • gunzip

    Extracts `gz-file` to `dest` dir. If `dest` dir not specified (or `nil`) defaults to `gz-file` dir. File is extr...

  • gzip

    Gzips `source-file` to `dir/out-file`. Does not store the `source-file` name in the `.gz` file. The `source-file` i...

H

  • halt-when

    Returns a transducer that ends transduction when pred returns true for an input. When retf is supplied it must be a fn...

  • hash

    Returns the hash code of its argument. Note this is the hash code consistent with =, and thus is different than .hashC...

  • hash-map

    keyval => key val Returns a new hash map with supplied mappings. If any keys are equal, they are handled as if by r...

  • hash-map

    Like clojure.core/hash-map, except the values are generators. Returns a generator that makes maps with the supplied k...

  • hash-ordered-coll

    Returns the hash code, consistent with =, for an external ordered collection implementing Iterable. See http://clo...

  • hash-set

    Returns a new hash set with supplied keys. Any equal keys are handled as if by repeated uses of conj.

  • hash-unordered-coll

    Returns the hash code, consistent with =, for an external unordered collection implementing Iterable. For maps, the i...

  • head

    Convenience wrapper for `request` with method `:head`

  • head

    Issues an async HTTP HEAD request. See `request` for details.

  • hidden?

    Returns true if `f` is hidden via [Files/isHidden](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio...

  • home

    With no arguments, returns the current value of the `user.home` system property as a `Path`. If a `user` is passed, re...

  • html

    Render Clojure data structures to a string of HTML. Strings are **not** automatically escaped, but must be manually es...

  • html

    Render Clojure data structures to a compiled representation of HTML. To turn the representation into a string, use clo...

  • hypot

    Returns sqrt(x^2 + y^2) without intermediate underflow or overflow. If x or y is ##Inf or ##-Inf => ##Inf If x or y ...

I

  • ident?

    Return true if x is a symbol or keyword

  • identical?

    Tests if 2 arguments are the same object

  • identity

    Returns its argument.

  • IEEE-remainder

    Returns the remainder per IEEE 754 such that remainder = dividend - divisor * n where n is the integer closest to ...

  • if

    Evaluates test, then consequent or alternative.

  • if-let

    bindings => binding-form test If test is true, evaluates then with binding-form bound to the value of test, if not...

  • if-not

    Evaluates test. If logical false, evaluates and returns then expr, otherwise else expr, if supplied, else nil.

  • if-some

    bindings => binding-form test If test is not nil, evaluates then with binding-form bound to the value of test, if...

  • ifn?

    Returns true if x implements IFn. Note that many data structures (e.g. sets and maps) implement IFn

  • in

    SCI var that represents SCI's `clojure.core/*in*`

  • in-ns

    Sets *ns* to the namespace named by the symbol, creating it if needed.

  • inc

    Returns a number one greater than num. Does not auto-promote longs, will throw on overflow. See also: inc'

  • inc'

    Returns a number one greater than num. Supports arbitrary precision. See also: inc

  • inc-report-counter

    Increments the named counter in *report-counters*, a ref to a map. Does nothing if *report-counters* is nil.

  • includes?

    True if s includes substr.

  • increment-exact

    Returns a incremented by 1, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/api/jav...

  • indent

    Emits the XML and indents the result. WARNING: this is slow it will emit the XML and read it in again to indent it. ...

  • indent-str

    Emits the XML and indents the result. Writes the results to a String and returns it

  • index

    Returns a map of the distinct values of ks in the xrel mapped to a set of the maps in xrel with the corresponding valu...

  • index-of

    Return index of value (string or char) in s, optionally searching forward from from-index. Return nil if value not fou...

  • indexed?

    Return true if coll implements Indexed, indicating efficient lookup by index

  • indexing-push-back-reader

    Creates an IndexingPushbackReader from a given string or PushbackReader

  • indexing-reader?

    Returns true if the reader satisfies IndexingReader

  • infinite?

    Returns true if num is negative or positive infinity, else false

  • info

    Info level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • info

    Info level logging using print-style args. See logp for details.

  • infof

    Info level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • infof

    Info level logging using format. See logf for details.

  • init

    Creates an initial sci context from given options `opts`. The context can be used with `eval-string*`. See `eval-strin...

  • inner?

    Returns true if `node` can have children.

  • input-stream

    Attempts to coerce its argument into an open java.io.InputStream. Default implementations always return a java.io.Buf...

  • insert-child

    Inserts the item as the leftmost child of the node at this loc, without moving

  • insert-child

    Return `zloc` with `item` inserted as the first child of the current node in `zloc`, without moving location. If `item...

  • insert-child*

    Raw version of [[insert-child]]. Returns zipper with node `item` inserted as the leftmost child of the current node in ...

  • insert-left

    Inserts the item as the left sibling of the node at this loc, without moving

  • insert-left

    Return zipper with `item` inserted to the left of the current node in `zloc`, without moving location. If `item` is no...

  • insert-left*

    Raw version of [[insert-left]]. Returns zipper with node `item` inserted as the left sibling of current node in `zloc`,...

  • insert-newline-left

    Return zipper with `n` newlines node inserted to the left of the current node in `zloc`, without moving location. `n`...

  • insert-newline-right

    Return zipper with `n` newlines node inserted to the right of the current node in `zloc`, without moving location. `n...

  • insert-right

    Inserts the item as the right sibling of the node at this loc, without moving

  • insert-right

    Return `zloc` with `item` inserted to the right of the current node in `zloc`, without moving location. If `item` is n...

  • insert-right*

    Raw version of [[insert-right]]. Returns zipper with node `item` inserted as the right sibling of the current node in `...

  • insert-space-left

    Return zipper with `n` space whitespace node inserted to the left of the current node in `zloc`, without moving location...

  • insert-space-right

    Return zipper with `n` space whitespace node inserted to the right of the current node in `zloc`, without moving locatio...

  • inst-ms

    Return the number of milliseconds since January 1, 1970, 00:00:00 GMT

  • inst?

    Return true if x satisfies Inst

  • instance?

    Evaluates x and tests if it is an instance of the class c. Returns true or false

  • instant->file-time

    Converts `instant` [Instant](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Instant.html) to a...

  • int

    Coerce to int

  • int

    Deprecated - use gen/small-integer instead. Generates a positive or negative integer bounded by the generator's `si...

  • int-array

    Creates an array of ints

  • int?

    Return true if x is a fixed precision integer

  • integer-node

    Create node representing an integer `value` in `base`. `base` defaults to 10. ```Clojure (require '[rewrite-cl...

  • integer?

    Returns true if n is an integer

  • interleave

    Returns a lazy seq of the first item in each coll, then the second etc.

  • intern

    Finds or creates a var named by the symbol name in the namespace ns (which can be a symbol or a namespace), setting it...

  • intern

    Finds or creates a sci var named by the symbol name in the namespace ns (which can be a symbol or a sci namespace), se...

  • interpose

    Returns a lazy seq of the elements of coll separated by sep. Returns a stateful transducer when no collection is provi...

  • intersection

    Return a set that is the intersection of the input sets

  • into

    Returns a new coll consisting of to with all of the items of from conjoined. A transducer may be supplied. (into x) ...

  • into

    Returns a channel containing the single (collection) result of the items taken from the channel conjoined to the suppl...

  • into-array

    Returns an array with components set to the values in aseq. The array's component type is type if provided, or the typ...

  • into-hiccup

    Helper function to be used with custom hiccup renderer. Takes a hiccup vector, a context and a node, embeds node's `:...

  • ints

    Casts to int[]

  • iobj?

    Returns true if obj can carry metadata.

  • is

    Generic assertion macro. 'form' is any predicate test. 'msg' is an optional message to attach to the assertion. Ex...

  • isa?

    Returns true if (= child parent), or child is directly or indirectly derived from parent, either via a Java type inher...

  • iterate

    Returns a lazy (infinite!) sequence of x, (f x), (f (f x)) etc. f must be free of side-effects

  • iteration

    Creates a seqable/reducible via repeated calls to step, a function of some (continuation token) 'k'. The first call to...

  • iterator-seq

    Returns a seq on a java.util.Iterator. Note that most collections providing iterators implement Iterable and thus supp...

J

  • javadoc-url

    Searches for a URL for the given class name. Tries *local-javadocs* first, then *remote-javadocs*. Returns a string.

  • join

    When passed 2 rels, returns the rel corresponding to the natural join. When passed an additional keymap, joins on the ...

  • join

    Returns a string of all elements in coll, as returned by (seq coll), separated by an optional separator.

  • join

    Turn a tree of trees into a single tree. Does this by concatenating children of the inner and outer trees.

  • join

    Returns `zloc` with sequence to the left joined to sequence to the right. Also works for strings. If sequence types ...

  • join-fixtures

    Composes a collection of fixtures, in order. Always returns a valid fixture function, even if the collection is empty...

  • juxt

    Takes a set of functions and returns a fn that is the juxtaposition of those fns. The returned fn takes a variable nu...

K

  • keep

    Returns a lazy sequence of the non-nil results of (f item). Note, this means false return values will be included. f ...

  • keep-indexed

    Returns a lazy sequence of the non-nil results of (f index item). Note, this means false return values will be include...

  • key

    Returns the key of the map entry.

  • keys

    Returns a sequence of the map's keys, in the same order as (seq map).

  • keyword

    Returns a Keyword with the given namespace and name. Do not use : in the keyword strings, it will be added automatica...

  • keyword

    Generates keywords without namespaces.

  • keyword-node

    Create a node representing a keyword `k`. Optionally include `auto-resolved?`, which defaults to `false`. ```Clo...

  • keyword-node?

    Returns true if `n` is a node representing a keyword.

  • keyword-ns

    Generates keywords with namespaces.

  • keyword?

    Return true if x is a Keyword

  • keywordize-keys

    Recursively transforms all map keys from strings to keywords.

  • kill

    Returns `zloc` with the current node and all sibling nodes to the right removed. Locates `zloc` to node left of delete...

  • kill-at-pos

    Return `zloc` with found item starting at `pos` removed to its natural end. If `pos` is: - inside a string, remove...

  • kill-one-at-pos

    Return `zloc` with node/word found at `pos` removed. If `pos` is: - inside a string or comment, removes word at `po...

L

  • large-integer

    Generates a platform-native integer from the full available range (in clj, 64-bit Longs, and in cljs, numbers between ...

  • large-integer*

    Like large-integer, but accepts options: :min the minimum integer (inclusive) :max the maximum integer (inclu...

  • last

    Return the last item in coll, in linear time

  • last-index-of

    Return last index of value (string or char) in s, optionally searching backward from from-index. Return nil if value n...

  • last-modified-time

    Returns last modified time of `f` as a [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/...

  • lazy-cat

    Expands to code which yields a lazy sequence of the concatenation of the supplied colls. Each coll expr is not evalua...

  • lazy-random-states

    Internal function. Given a random number generator, returns an infinite lazy sequence of random number generators.

  • lazy-seq

    Takes a body of expressions that returns an ISeq or nil, and yields a Seqable object that will invoke the body only th...

  • leader-length

    Returns number of characters before children for `node`.

  • left

    Returns the loc of the left sibling of the node at this loc, or nil

  • left

    Return zipper with location moved left to next non-whitespace/non-comment sibling of current node in `zloc`.

  • left*

    Raw version of [[left]]. Returns zipper with location at the left sibling of the current node in `zloc`, or nil. NOTE:...

  • leftmost

    Returns the loc of the leftmost sibling of the node at this loc, or self

  • leftmost

    Return zipper with location moved to the leftmost non-whitespace/non-comment sibling of current node in `zloc`.

  • leftmost*

    Raw version of [[leftmost]]. Returns zipper with location at the leftmost sibling of the current node in `zloc`, or sel...

  • leftmost?

    Return true if at leftmost non-whitespace/non-comment sibling node in `zloc`.

  • lefts

    Returns a seq of the left siblings of this loc

  • length

    Return number of characters for the string version of `node`.

  • length

    Return length of printable [[string]] of current node in `zloc`.

  • let

    binding => binding-form init-expr binding-form => name, or destructuring-form destructuring-form => map-destructure-...

  • let

    Macro for building generators using values from other generators. Uses a binding vector with the same syntax as clojur...

  • letfn

    fnspec ==> (fname [params*] exprs) or (fname ([params*] exprs)+) Takes a vector of function specs and a body, and gen...

  • line-separated

    Interleave `nodes` with newline nodes.

  • line-seq

    Returns the lines of text from rdr as a lazy sequence of strings. rdr must implement java.io.BufferedReader.

  • linebreak?

    Returns true if `node` represents one or more linebreaks.

  • linebreak?

    Returns true when the current node in `zloc` is a linebreak.

  • list

    Creates a new list containing the items.

  • list

    Like `vector`, but generates lists.

  • list*

    Creates a new seq containing the items prepended to the rest, the last of which will be treated as a sequence.

  • list-dir

    Returns all paths in `dir` as vector. For descending into subdirectories use `glob.` - `glob-or-accept` - a glob st...

  • list-dirs

    Similar to list-dir but accepts multiple roots in `dirs` and returns the concatenated results. - `glob-or-accept` - a ...

  • list-distinct

    Generates a list of elements from the given generator, with the guarantee that the elements will be distinct. If th...

  • list-distinct-by

    Generates a list of elements from the given generator, with the guarantee that (map key-fn the-list) will be distinct....

  • list-node

    Create a node representing a list with `children`. ```Clojure (require '[rewrite-clj.node :as n]) (-> (n/list...

  • list?

    Returns true if x implements IPersistentList

  • list?

    Returns true if current node in `zloc` is a list.

  • load

    Loads Clojure code from resources in classpath. A path is interpreted as classpath-relative if it begins with a slash ...

  • load-reader

    Sequentially read and evaluate the set of forms contained in the stream/file

  • load-string

    Sequentially read and evaluate the set of forms contained in the string

  • loaded-libs

    Returns a sorted set of symbols naming the currently loaded libs

  • lock

    Issues an async HTTP LOCK request. See `request` for details.

  • locking

    Executes exprs in an implicit do, while holding the monitor of x. Will release the monitor of x in all circumstances.

  • log

    Returns the natural logarithm (base e) of a. If a is ##NaN or negative => ##NaN If a is ##Inf => ##Inf If a is zer...

  • log

    Evaluates and logs a message only if the specified level is enabled. See log* for more details.

  • log!

    Core low-level log macro. Useful for tooling/library authors, etc. * `level` - must eval to a valid logging l...

  • log*

    Attempts to log a message, either directly or via an agent; does not check if the level is enabled. For performance...

  • log10

    Returns the logarithm (base 10) of a. If a is ##NaN or negative => ##NaN If a is ##Inf => ##Inf If a is zero => ##...

  • log1p

    Returns ln(1+x). For small values of x, log1p(x) is more accurate than log(1.0+x). If x is ##NaN or < -1 => ##NaN ...

  • logf

    Logs a message using a format string and args. Can optionally take a throwable as its second arg. See level-specific m...

  • logf

    Logs a message using a format string and args, where all format args will be printed readably, as if wrapped in pr-str...

  • logp

    Logs a message using print style args. Can optionally take a throwable as its second arg. See level-specific macros, e...

  • logp

    Logs a message using print style args, where message args that are not literal strings will be printed readably, as if...

  • long

    Coerce to long

  • long-array

    Creates an array of longs

  • longs

    Casts to long[]

  • loop

    Evaluates the exprs in a lexical context in which the symbols in the binding-forms are bound to their respective init-...

  • lower-case

    Converts string to all lower-case.

M

  • macroexpand

    Repeatedly calls macroexpand-1 on form until it no longer represents a macro form, then returns it. Note neither ma...

  • macroexpand-1

    If form represents a macro form, returns its expansion, else returns form.

  • macroexpand-all

    Recursively performs all possible macroexpansions in form.

  • make-array

    Creates and returns an array of instances of the specified class of the specified dimension(s). Note that a class obj...

  • make-client

    Returns an HttpClient with specified options: :max-connections ; Max connection count, default is unlimited (-1) ...

  • make-hierarchy

    Creates a hierarchy object for use with derive, isa? etc.

  • make-node

    Returns a new branch node, given an existing node and new children. The loc is only used to supply the constructor.

  • make-parents

    Given the same arg(s) as for file, creates all parent directories of the file they represent.

  • make-random

    Given an optional Long seed, returns an object that satisfies the IRandom protocol.

  • make-size-range-seq

    Internal function.

  • make-ssl-engine

    Returns an SSLEngine using default or given SSLContext.

  • make-summary-part

    Given a single compiled option spec, turn it into a formatted string, optionally with its default values if requested.

  • map

    Returns a lazy sequence consisting of the result of applying f to the set of first items of each coll, followed by app...

  • map

    Takes a function and a collection of source channels, and returns a channel which contains the values produced by appl...

  • map

    Creates a generator that generates maps, with keys chosen from `key-gen` and values chosen from `val-gen`. If the k...

  • map

    Returns `zloc` with function `f` applied to all nodes of the current node. Current node must be a sequence node. Equiv...

  • map->ErrorResult

    Factory function for class clojure.test.check.properties.ErrorResult, taking a map of keywords to field values.

  • map->Generator

    Factory function for class clojure.test.check.generators.Generator, taking a map of keywords to field values.

  • map-context-apply

    Applies `map-qualifier` context to `node`

  • map-context-clear

    Removes map-qualifier context for `node`

  • map-entry?

    Return true if x is a map entry

  • map-indexed

    Returns a lazy sequence consisting of the result of applying f to 0 and the first item of coll, followed by applying f...

  • map-invert

    Returns the map with the vals mapped to the keys.

  • map-keys

    Returns `zloc` with function `f` applied to all key nodes of the current node. Current node must be map node. `zlo...

  • map-node

    Create a node representing a map with `children`. ```Clojure (require '[rewrite-clj.node :as n]) (-> (n/map-no...

  • map-qualifier-node

    Create a map qualifier node. The map qualifier node is a child node of [[namespaced-map-node]]. ```Clojure (re...

  • map-vals

    Returns `zloc` with function `f` applied to each value node of the current node. Current node must be map node. `z...

  • map<

    Deprecated - this function will be removed. Use transducer instead

  • map>

    Deprecated - this function will be removed. Use transducer instead

  • map?

    Return true if x implements IPersistentMap

  • map?

    Returns true if current node in `zloc` is a map.

  • mapcat

    Returns the result of applying concat to the result of applying map to f and colls. Thus function f should return a c...

  • mapcat<

    Deprecated - this function will be removed. Use transducer instead

  • mapcat>

    Deprecated - this function will be removed. Use transducer instead

  • mapv

    Returns a vector consisting of the result of applying f to the set of first items of each coll, followed by applying f...

  • mark

    ⚙️ low level, please consider higher level [[clj-yaml.core]] API first Returns internal structure wrapping `marked` w...

  • match

    Returns a vector of paths matching `pattern` (on path and filename) relative to `root` dir. Pattern interpretation is ...

  • match

    Pattern match a row of occurrences. Take a vector of occurrences, vars. Clause question-answer syntax is like `cond`. ...

  • max

    Returns the greatest of the nums.

  • max-body-filter

    reject if response's body exceeds size in bytes

  • max-key

    Returns the x for which (k x), a number, is greatest. If there are multiple such xs, the last one is returned.

  • may-log?

    Private, don't use. Returns true iff level and ns are runtime unfiltered.

  • memfn

    Expands into code that creates a fn that expects to be passed an object and any args and calls the named instance meth...

  • memoize

    Returns a memoized version of a referentially transparent function. The memoized version of the function keeps a cache...

  • merge

    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...

  • merge

    Takes a collection of source channels and returns a channel which contains all values taken from them. The returned ch...

  • merge-deps

    Merge multiple deps edn maps from left to right into a single deps edn map.

  • merge-opts

    Merges babashka CLI options.

  • merge-opts

    Updates a context with opts merged in and returns it.

  • merge-with

    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...

  • meta

    Returns the metadata of obj, returns nil if there is no metadata.

  • meta-node

    Create a node representing a form with metadata. When creating manually, you can specify `metadata` and `data` and s...

  • methods

    Given a multimethod, returns a map of dispatch values -> dispatch fns

  • millis->file-time

    Converts epoch millis (long) to a [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/...

  • min

    Returns the least of the nums.

  • min-key

    Returns the x for which (k x), a number, is least. If there are multiple such xs, the last one is returned.

  • mix

    Creates and returns a mix of one or more input channels which will be put on the supplied out channel. Input sources c...

  • mod

    Modulus of num and div. Truncates toward negative infinity.

  • modified-since

    Returns seq of regular files (non-directories, non-symlinks) from `file-set` that were modified since the `anchor` path....

  • move

    Move or rename dir or file `source` to `target` dir or file via [Files/move](https://docs.oracle.com/en/java/javase/11/d...

  • move

    Issues an async HTTP MOVE request. See `request` for details.

  • move-to-prev

    Move node at current location to the position of previous location given a depth first traversal - `(+ 1 (+ 2 |3) ...

  • mult

    Creates and returns a mult(iple) of the supplied channel. Channels containing copies of the channel can be created wit...

  • multipart

    Adds appropriate body and header if making a multipart request.

  • multiply-exact

    Returns the product of x and y, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/api...

N

  • name

    Returns the name String of a string, symbol or keyword.

  • namespace

    Returns the namespace String of a symbol or keyword, or nil if not present.

  • namespace-munge

    Convert a Clojure namespace name to a legal Java package name.

  • namespaced-map-node

    Create a namespaced map node with `children`. ```Clojure (require '[rewrite-clj.node :as n]) (-> (n/namespace...

  • namespaced-map?

    Returns true if the current node in `zloc` is a namespaced map.

  • NaN?

    Returns true if num is NaN, else false

  • nat

    Generates non-negative integers bounded by the generator's `size` parameter. Shrinks to zero.

  • nat-int?

    Return true if x is a non-negative fixed precision integer

  • neg-int

    Deprecated - use (gen/fmap - gen/nat) instead (see also gen/large-integer). (this generator, despite its name, can ge...

  • neg-int?

    Return true if x is a negative fixed precision integer

  • neg?

    Returns true if num is less than zero, else false

  • negate-exact

    Returns the negation of a, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/api/java...

  • new

    Creates a new instance of a class.

  • new-dynamic-var

    Same as new-var but adds :dynamic true to meta.

  • new-macro-var

    Same as new-var but adds :macro true to meta as well as :sci/macro true to meta of the fn itself.

  • new-var

    Returns a new sci var.

  • newline

    Writes a platform-specific newline to *out*

  • newline-node

    Create newline node of string `s`, where `s` is one or more linebreak characters.

  • newlines

    Create node representing `n` newline characters.

  • next

    Returns a seq of the items after the first. Calls seq on its argument. If there are no more items, returns nil.

  • next

    Moves to the next loc in the hierarchy, depth-first. When reaching the end, returns a distinguished loc detectable via...

  • next

    Return zipper with location moved to the next depth-first non-whitespace/non-comment node in `zloc`. End can be detec...

  • next*

    Raw version of [[next]]. Returns zipper with location at the next depth-first location in the hierarchy in `zloc`. Wh...

  • next-after

    Returns the adjacent floating point number to start in the direction of the second argument. If the arguments are equa...

  • next-down

    Returns the adjacent double of d in the direction of ##-Inf. If d is ##NaN => ##NaN If d is ##-Inf => ##-Inf If d ...

  • next-up

    Returns the adjacent double of d in the direction of ##Inf. If d is ##NaN => ##NaN If d is ##Inf => ##Inf If d is ...

  • nfirst

    Same as (next (first x))

  • nil?

    Returns true if x is nil, false otherwise.

  • nnext

    Same as (next (next x))

  • no-shrink

    Creates a new generator that is just like `gen`, except does not shrink at all. This can be useful when shrinking is t...

  • node

    Returns the node at loc

  • node

    Returns the current node in `zloc`.

  • node->text

    Convert node into text.

  • node?

    Returns true if `x` is a rewrite-clj created node.

  • normalize

    Returns normalize `Path` for `f` via [Path#normalize](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/...

  • normalize-opts

    Expands `opts` into normalized opts, e.g. `:all true` is expanded into explicit options.

  • normalize-tokenizer

    Normalizes a map of regex and handler into a Tokenizer

  • not

    Returns true if x is logical false, false otherwise.

  • not-any?

    Returns false if (pred x) is logical true for any x in coll, else true.

  • not-empty

    If coll is empty, returns nil, else coll

  • not-empty

    Modifies a generator so that it doesn't generate empty collections. Examples: ;; generate a vector of booleans...

  • not-every?

    Returns false if (pred x) is logical true for every x in coll, else true.

  • not=

    Same as (not (= obj1 obj2))

  • ns

    Sets *ns* to the namespace named by name (unevaluated), creating it if needed. references can be zero or more of: (:r...

  • ns

    SCI var that represents SCI's `clojure.core/*ns*`

  • ns-aliases

    Returns a map of the aliases for the namespace.

  • ns-imports

    Returns a map of the import mappings for the namespace.

  • ns-interns

    Returns a map of the intern mappings for the namespace.

  • ns-map

    Returns a map of all the mappings for the namespace.

  • ns-name

    Returns the name of the namespace, a symbol.

  • ns-name

    Returns name of SCI ns as symbol.

  • ns-publics

    Returns a map of the public intern mappings for the namespace.

  • ns-refers

    Returns a map of the refer mappings for the namespace.

  • ns-resolve

    Returns the var or Class to which a symbol will be resolved in the namespace (unless found in the environment), else n...

  • ns-unalias

    Removes the alias for the symbol from the namespace.

  • ns-unmap

    Removes the mappings for the symbol from the namespace.

  • nth

    Returns the value at the index. get returns nil if index out of bounds, nth throws an exception unless not-found is su...

  • nthnext

    Returns the nth next of coll, (seq coll) when n is 0.

  • nthrest

    Returns the nth rest of coll, coll when n is 0.

  • num

    Coerce to Number

  • number?

    Returns true if x is a Number

  • numerator

    Returns the numerator part of a Ratio.

O

  • oauth-token

    Request: adds `:authorization` header based on `:oauth-token` (a string token) in request.

  • object-array

    Creates an array of objects

  • odd?

    Returns true if n is odd, throws an exception if n is not an integer

  • of-file

    Create and return zipper from all forms in Clojure/ClojureScript/EDN File `f`, and move to the first non-whitespace/non-...

  • of-file*

    Create and return zipper from all forms in Clojure/ClojureScript/EDN File `f`, and do no automatic move. See [[of-...

  • of-node

    Create and return zipper from a rewrite-clj `node` (likely parsed by [[rewrite-clj.parser]]), and move to the first no...

  • of-node*

    Create and return zipper from a rewrite-clj `node` (likely parsed by [[rewrite-clj.parser]]). Optional `opts` can spe...

  • of-string

    Create and return zipper from all forms in Clojure/ClojureScript/EDN string `s`, and move to the first non-whitespace/no...

  • of-string*

    Create and return zipper from all forms in Clojure/ClojureScript/END string `s`, and do no automatic move. See [[of-s...

  • offer!

    Puts a val into port if it's possible to do so immediately. nil values are not allowed. Never blocks. Returns true if...

  • on-close

    Sets handler (fn [status-code]) for notification of channel being closed by the server or client. Handler will be in...

  • one-of

    Creates a generator that randomly chooses a value from the list of provided generators. Shrinks toward choosing an ear...

  • onto-chan

    Deprecated - use onto-chan! or onto-chan!!

  • onto-chan!

    Puts the contents of coll into the supplied channel. By default the channel will be closed after the items are copied...

  • onto-chan!!

    Like onto-chan! for use when accessing coll might block, e.g. a lazy seq of blocking operations

  • options

    Issues an async HTTP OPTIONS request. See `request` for details.

  • or

    Evaluates exprs one at a time, from left to right. If a form returns a logical true value, or returns that value and d...

  • ordered-map

    Return a map with the given keys and values, whose entries are sorted in the order that keys are added. assoc'ing a key ...

  • ordered-set

    Return a set with the given items, whose items are sorted in the order that they are added. conj'ing an item that was al...

  • out

    SCI var that represents SCI's `clojure.core/*out*`

  • output-stream

    Attempts to coerce its argument into an open java.io.OutputStream. Default implementations always return a java.io.Bu...

  • owner

    Returns the owner of file `f` via [Files/getOwner](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio...

P

  • parent

    Returns parent of `f`. Akin to `dirname` in bash.

  • parents

    Returns the immediate parents of tag, either via a Java type inheritance relationship or a relationship established vi...

  • parse

    Parses an XML input source into a a tree of Element records. The element tree is realized lazily, so huge XML files can ...

  • parse

    Turns the given `markdown-string` into an AST of nested clojure data. Accepted `opts`: - `:text-tokenizers`: cust...

  • parse*

    Turns a markdown string into an AST of nested clojure data. Allows to parse multiple strings into the same document ...

  • parse-args

    Same as `parse-opts` but separates parsed opts into `:opts` and adds `:cmds` and `:rest-args` on the top level instead...

  • parse-args

    Parses arguments to `process` to map with: * `:prev`: a (previous) process whose input is piped into the current proc...

  • parse-boolean

    Parse strings "true" or "false" and return a boolean, or nil if invalid

  • parse-cmds

    Parses sub-commands (arguments not starting with an option prefix) and returns a map with: * `:cmds` - The parsed subc...

  • parse-double

    Parse string with floating point components and return a Double value, or nil if parse fails. Grammar: https://docs...

  • parse-file

    Return node for first source code element in file `f`.

  • parse-file-all

    Return forms node for all source code elements in file `f`.

  • parse-keyword

    Parse keyword from `s`. Ignores leading `:`.

  • parse-long

    Parse string of decimal digits with optional leading -/+ and return a Long value, or nil if parse fails

  • parse-next

    Parses next form from reader. Accepts same opts as `parse-string`, but must be normalized with `normalize-opts` first.

  • parse-next

    Parses next form from reader

  • parse-next+string

    Parses next form from reader. Accepts same opts as `parse-string`, but must be normalized with `normalize-opts` first....

  • parse-next+string

    Parses next form from reader

  • parse-ns-form

    Parses `ns-form`, an s-expression, into map with: - `:name`: the name of the namespace - `:aliases`: a map of aliase...

  • parse-opts

    Parse the command line arguments `args`, a seq of strings. Instead of a leading `:` either `--` or `-` may be used as ...

  • parse-opts

    Parse arguments sequence according to given option specifications and the GNU Program Argument Syntax Conventions: ...

  • parse-str

    Parses an XML String into a a tree of Element records. Options: :include-node? subset of #{:element :characters :com...

  • parse-stream

    Returns the Clojure object corresponding to the given reader, reader must implement BufferedReader. An optional key-fn...

  • parse-stream

    Returns Clojure data structures for stream of YAML read from `reader`. See [[parse-string]] for `& opts`

  • parse-stream-strict

    Returns the Clojure object corresponding to the given reader, reader must implement BufferedReader. An optional key-fn...

  • parse-string

    Returns the Clojure object corresponding to the given JSON-encoded string. An optional key-fn argument can be either t...

  • parse-string

    Returns parsed `yaml-string` as Clojure data structures. Valid `& opts` (`opts` are keyword args, see [docs](/doc/01-...

  • parse-string

    Parses first EDN value from string. Supported parsing options can be `true` for default behavior or a function that...

  • parse-string

    Return a node for first source code element in string `s`.

  • parse-string

    Parses string `s` in the context of `ctx` (as produced with `init`).

  • parse-string-all

    Like `parse-string` but parses all values from string and returns them in a vector.

  • parse-string-all

    Return forms node for all source code elements in string `s`.

  • parse-string-strict

    Returns the Clojure object corresponding to the given JSON-encoded string. An optional key-fn argument can be either t...

  • parse-timestamp

    Parse a string containing an RFC3339-like like timestamp. The function new-instant is called with the following argumen...

  • parse-uuid

    Parse a string representing a UUID and return a java.util.UUID instance, or nil if parse fails. Grammar: https://do...

  • parsed-seq

    Returns a lazy seq of Clojure objects corresponding to the JSON read from the given reader. The seq continues until th...

  • partial

    Takes a function f and fewer than the normal arguments to f, and returns a fn that takes a variable number of addition...

  • partition

    Returns a lazy sequence of lists of n items each, at offsets step apart. If step is not supplied, defaults to n, i.e. ...

  • partition

    Deprecated - this function will be removed. Use transducer instead

  • partition-all

    Returns a lazy sequence of lists like partition, but may include partitions with fewer than n items at the end. Retur...

  • partition-by

    Applies f to each value in coll, splitting it each time f returns a new value. Returns a lazy seq of partitions. Re...

  • partition-by

    Deprecated - this function will be removed. Use transducer instead

  • partitionv

    Returns a lazy sequence of vectors of n items each, at offsets step apart. If step is not supplied, defaults to n, i.e...

  • partitionv-all

    Returns a lazy sequence of vector partitions, but may include partitions with fewer than n items at the end. Returns...

  • patch

    Convenience wrapper for `request` with method `:patch`

  • patch

    Issues an async HTTP PATCH request. See `request` for details.

  • path

    Coerces arg(s) into a `Path`, combining multiple paths into one. Multiple-arg versions treat the first argument as par...

  • path

    Returns a seq of nodes leading to this loc

  • path-separator

    The system-dependent path-separator character (as string).

  • pb

    Returns a process builder (as record).

  • peek

    For a list or queue, same as first, for a vector, same as, but much more efficient than, last. If the collection is em...

  • peek-char

    Returns the next char from the Reader without removing it from the reader stream

  • permutations

    Create a seq of vectors, where each rose in turn, has been replaced by its children.

  • persistent!

    Returns a new, persistent version of the transient collection, in constant time. The transient collection cannot be us...

  • PI

    Constant for pi, the ratio of the circumference of a circle to its diameter. See: https://docs.oracle.com/javase/8/doc...

  • ping!

    Sends a Ping message with bytes from the given buffer.

  • pipe

    Takes elements from the from channel and supplies them to the to channel. By default, the to channel will be closed wh...

  • pipeline

    Returns the processes for one pipe created with -> or creates pipeline from multiple process builders. - When passi...

  • pipeline

    Takes elements from the from channel and supplies them to the to channel, subject to the transducer xf, with paralleli...

  • pipeline-async

    Takes elements from the from channel and supplies them to the to channel, subject to the async function af, with paral...

  • pipeline-blocking

    Like pipeline, for blocking operations.

  • pmap

    Like clojure.core/pmap but also conveys sci bindings to the threads.

  • poll!

    Takes a val from port if it's possible to do so immediately. Never blocks. Returns value if successful, nil otherwise...

  • pong!

    Sends a Pong message with bytes from the given buffer.

  • pop

    For a list or queue, returns a new list/queue without the first item, for a vector, returns a new vector without the l...

  • pop!

    Removes the last item from a transient vector. If the collection is empty, throws an exception. Returns coll

  • pop-thread-bindings

    Pop one set of bindings pushed with push-binding before. It is an error to pop bindings without pushing before.

  • pos-int

    Deprecated - use gen/nat instead (see also gen/large-integer). (this generator, despite its name, can generate 0) ...

  • pos-int?

    Return true if x is a positive fixed precision integer

  • pos?

    Returns true if num is greater than zero, else false

  • position

    Returns the ones-based `[row col]` of the start of the current node in `zloc`. Throws if `zloc` was not created with ...

  • position-span

    Returns the ones-based `[[start-row start-col] [end-row end-col]]` of the current node in `zloc`. `end-col` is exclusi...

  • posix->str

    Converts a set of `PosixFilePermission` `p` to a string.

  • posix-file-permissions

    Returns posix file permissions for `f`. Use [[posix->str]] to view as a string. Options: * [`:nofollow-links`](/REA...

  • post

    Convenience wrapper for `request` with method `:post`

  • post

    Issues an async HTTP POST request. See `request` for details.

  • postwalk

    Performs a depth-first, post-order traversal of form. Calls f on each sub-form, uses f's return value in place of the...

  • postwalk

    Return zipper modified by an isolated depth-first post-order traversal. Post-order traversal visits children before ...

  • postwalk-demo

    Demonstrates the behavior of postwalk by printing each form as it is walked. Returns form.

  • postwalk-replace

    Recursively transforms form by replacing keys in smap with their values. Like clojure/replace but works on any data s...

  • pow

    Returns the value of a raised to the power of b. For more details on special cases, see: https://docs.oracle.com/jav...

  • pp

    A convenience macro that pretty prints the last thing output. This is exactly equivalent to (pprint *1).

  • pprint

    Pretty print object to the optional output writer. If the writer is not provided, print the object to the currently bou...

  • pr

    Prints the object(s) to the output stream that is the current value of *out*. Prints the object(s), separated by spac...

  • pr-str

    pr to a string, returning it

  • prefer-method

    Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y when there is a conflict

  • prefers

    Given a multimethod, returns a map of preferred value -> set of other values

  • prefix

    Return zipper with the current node in `zloc` prefixed with string `s`. Operates on token node or a multi-line node, ...

  • prepend-newline

    DEPRECATED: renamed to [[insert-newline-left]].

  • prepend-space

    DEPRECATED: renamed to [[insert-space-left]].

  • prev

    Moves to the previous loc in the hierarchy, depth-first. If already at the root, returns nil.

  • prev

    Return zipper with location moved to the previous depth-first non-whitespace/non-comment node in `zloc`. If already at r...

  • prev*

    Raw version of [[prev]]. Returns zipper with location at the previous depth-first location in the hierarchy in `zloc`. ...

  • prewalk

    Like postwalk, but does pre-order traversal.

  • prewalk

    Return zipper modified by an isolated depth-first pre-order traversal. Pre-order traversal visits root before childr...

  • prewalk-demo

    Demonstrates the behavior of prewalk by printing each form as it is walked. Returns form.

  • prewalk-replace

    Recursively transforms form by replacing keys in smap with their values. Like clojure/replace but works on any data s...

  • print

    Prints the object(s) to the output stream that is the current value of *out*. print and println produce output for hu...

  • print

    Print current node in `zloc`. NOTE: Optional `writer` is currently ignored for ClojureScript.

  • print-dup

    SCI var that represents SCI's `clojure.core/*print-dup*`

  • print-length

    SCI var that represents SCI's `clojure.core/*print-length*`

  • print-level

    SCI var that represents SCI's `clojure.core/*print-level*`

  • print-meta

    SCI var that represents SCI's `clojure.core/*print-meta*`

  • print-namespace-maps

    SCI var that represents SCI's `clojure.core/*print-namespace-maps*`

  • print-readably

    SCI var that represents SCI's `clojure.core/*print-readably*`

  • print-root

    Zip up and print `zloc` from root node. NOTE: Optional `writer` is currently ignored for ClojureScript.

  • print-str

    print to a string, returning it

  • print-table

    Prints a collection of maps in a textual table. Prints table headings ks, and then a line of output for each row, cor...

  • print-uri-file-command!

    Shell command to create a dummy file for xmlns. Execute from a source root.

  • printable-only?

    Return true if `node` cannot be converted to an s-expression element.

  • printf

    Prints formatted output, as per format

  • println

    Same as print followed by (newline)

  • println-appender

    Returns a simple `println` appender for Clojure/Script. Use with ClojureScript requires that `cljs.core/*print-fn*` be...

  • println-appender

    Returns a simple `println` appender for Clojure/Script. Use with ClojureScript requires that `cljs.core/*print-fn*` be...

  • println-str

    println to a string, returning it

  • PrintWriter-on

    implements java.io.PrintWriter given flush-fn, which will be called when .flush() is called, with a string built up si...

  • priority-map

    Usage: (priority-map key val key val ...) Returns a new priority map with optional supplied mappings. (priority-map)...

  • priority-map-keyfn

    Usage: (priority-map-keyfn keyfn key val key val ...) Returns a new priority map with custom keyfn and optional suppli...

  • prn

    Same as pr followed by (newline). Observes *flush-on-newline*

  • prn-str

    prn to a string, returning it

  • process

    Creates a child process. Takes a command (vector of strings or objects that will be turned into strings) and optionall...

  • process*

    Same as with `process` but called with parsed arguments (the result from `parse-args`)

  • project

    Returns a rel of the elements of xrel with only the keys in ks

  • promise

    Returns a promise object that can be read with deref/@, and set, once only, with deliver. Calls to deref/@ prior to de...

  • promise-chan

    Creates a promise channel with an optional transducer, and an optional exception-handler. A promise channel can take e...

  • propfind

    Issues an async HTTP PROPFIND request. See `request` for details.

  • proppatch

    Issues an async HTTP PROPPATCH request. See `request` for details.

  • proxy

    class-and-interfaces - a vector of class names args - a (possibly empty) vector of arguments to the superclass cons...

  • proxy-mappings

    Takes a proxy instance and returns the proxy's fn map.

  • proxy-super

    Use to call a superclass method in the body of a proxy method. Note, expansion captures 'this

  • pub

    Creates and returns a pub(lication) of the supplied channel, partitioned into topics by the topic-fn. topic-fn will be...

  • pure

    Puts a value `x` into a Rose tree, with no children.

  • push-thread-bindings

    WARNING: This is a low-level function. Prefer high-level macros like binding where ever possible. Takes a map of Va...

  • put

    Convenience wrapper for `request` with method `:put`

  • put

    Issues an async HTTP PUT request. See `request` for details.

  • put!

    Asynchronously puts a val into port, calling fn1 (if supplied) when complete, passing false iff port is already close...

Q

  • qname-local

    Get the name for this qname

  • qname-uri

    Get the namespace uri for this qname

  • qualified-ident?

    Return true if x is a symbol or keyword with a namespace

  • qualified-keyword?

    Return true if x is a keyword with a namespace

  • qualified-symbol?

    Return true if x is a symbol with a namespace

  • query-params

    Request: encodes `:query-params` map and appends to `:uri`.

  • query-string

    Returns URL-encoded query string for given params map.

  • quick-check

    Tests `property` `num-tests` times. Takes several optional keys: `:seed` Can be used to re-run previous tests,...

  • quot

    quot[ient] of dividing numerator by denominator.

  • quote

    Yields the unevaluated form.

  • quote-node

    Create node representing a single quoted form where `children` is either a sequence of nodes or a single node. ``...

R

  • raise

    Delete siblings and raise node at zloc one level up - `[1 [2 |3 4]] => [1 |3]`

  • rand

    Returns a random floating point number between 0 (inclusive) and n (default 1) (exclusive).

  • rand-double

    Returns a random double between 0.0 (inclusive) and 1.0 (exclusive) based on the given immutable RNG. Note: to main...

  • rand-int

    Returns a random integer between 0 (inclusive) and n (exclusive).

  • rand-long

    Returns a random long based on the given immutable RNG. Note: to maintain independence you should not call more than ...

  • rand-nth

    Return a random element of the (sequential) collection. Will have the same performance characteristics as nth for the ...

  • random

    Returns a positive double between 0.0 and 1.0, chosen pseudorandomly with approximately random distribution. See: ht...

  • random-sample

    Returns items from coll with random probability of prob (0.0 - 1.0). Returns a transducer when no collection is provi...

  • random-uuid

    Returns a pseudo-randomly generated java.util.UUID instance (i.e. type 4). See: https://docs.oracle.com/javase/8/docs...

  • range

    Returns a lazy seq of nums from start (inclusive) to end (exclusive), by step, where start defaults to 0, step to 1, a...

  • ratio

    Generates a small ratio (or integer) using gen/small-integer. Shrinks toward simpler ratios, which may be larger or sm...

  • ratio?

    Returns true if n is a Ratio

  • rational?

    Returns true if n is a rational number

  • rationalize

    returns the rational value of num

  • raw

    Converts one or more strings into an object that will not be escaped when used with the [[hiccup2.core/html]] macro.

  • raw-meta-node

    Create a node representing a form with metadata that renders to the reader syntax. When creating manually, you can s...

  • raw-string

    Converts one or more strings into an object that will not be escaped when used with the [[hiccup2.core/html]] macro.

  • re-find

    Returns the next regex match, if any, of string to pattern, using java.util.regex.Matcher.find(). Uses re-groups to r...

  • re-groups

    Returns the groups from the most recent match/find. If there are no nested groups, returns a string of the entire matc...

  • re-matcher

    Returns an instance of java.util.regex.Matcher, for use, e.g. in re-find.

  • re-matches

    Returns the match, if any, of string to pattern, using java.util.regex.Matcher.matches(). Uses re-groups to return th...

  • re-pattern

    Returns an instance of java.util.regex.Pattern, for use, e.g. in re-matcher.

  • re-quote-replacement

    Given a replacement string that you wish to be a literal replacement for a pattern match in replace or replace-first,...

  • re-seq

    Returns a lazy sequence of successive matches of pattern in string, using java.util.regex.Matcher.find(), each such ma...

  • read

    Reads the next object from stream, which must be an instance of java.io.PushbackReader or some derivee. stream defaul...

  • read

    Reads the next object from stream, which must be an instance of java.io.PushbackReader or some derivee. stream defaul...

  • read

    Reads the first object from an IPushbackReader or a java.io.PushbackReader. Returns the object read. If EOF, throws i...

  • read

    Reads the first object from an IPushbackReader or a java.io.PushbackReader. Returns the object read. If EOF, throws i...

  • read

    Reads a value from a reader. Throws a RuntimeException when the reader's InputStream is empty.

  • read-all-bytes

    Returns contents of file `f` as byte array via [Files/readAllBytes](https://docs.oracle.com/en/java/javase/11/docs/api/j...

  • read-all-lines

    Read all lines from a file `f` via [Files/readAllLines](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/jav...

  • read-attributes

    Same as [[read-attributes*]] but turns `attributes` for `path` into a map and keywordizes keys. Keywordizing can be ch...

  • read-attributes*

    Reads `attributes` for `path` via [Files/readAttributes](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/ja...

  • read-bencode

    Read bencode token from the input stream.

  • read-char

    Returns the next char from the Reader, nil if the end of stream has been reached

  • read-csv

    Reads CSV-data from input (String or java.io.Reader) into a lazy sequence of vectors. Valid options are :sepa...

  • read-eval

    SCI var that represents SCI's `clojure.core/*read-eval*`

  • read-handler

    Creates a transit ReadHandler whose fromRep method invokes the provided fn.

  • read-handler-map

    Returns a HandlerMapContainer containing a ReadHandlerMap containing all the default handlers for Clojure and Java and...

  • read-instant-date

    To read an instant as a java.util.Date, bind *data-readers* to a map with this var as the value for the 'inst key. The t...

  • read-line

    Reads the next line from stream that is the current value of *in* .

  • read-link

    Reads the target of a symbolic link `path` via [Files/readSymbolicLink](https://docs.oracle.com/en/java/javase/11/docs/a...

  • read-string

    Reads one object from the string s. Optionally include reader options, as specified in read. Note that read-string ...

  • read-string

    Reads one object from the string s. Returns nil when s is nil or empty. Reads data in the edn format (subset of Cloju...

  • read-string

    Reads one object from the string s. Returns nil when s is nil or empty. Reads data in the edn format (subset of C...

  • readable?

    Returns true if `f` is readable via [Files/isReadable](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java...

  • reader

    Attempts to coerce its argument into an open java.io.Reader. Default implementations always return a java.io.Buffered...

  • reader

    Creates a reader over the provided source `in` using the specified format, one of: :msgpack, :json or :json-verbose. ...

  • reader

    Coerces x into indexing pushback-reader to be used with parse-next. Accepts string or `java.io.Reader`

  • reader

    Coerces x into indexing pushback-reader to be used with parse-next. Accepts: string or java.io.Reader.

  • reader-conditional

    Construct a data representation of a reader conditional. If true, splicing? indicates read-cond-splicing.

  • reader-conditional?

    Return true if the value is the data representation of a reader conditional

  • reader-macro-node

    Create node representing a reader macro with `macro-node` and `form-node` or `children`. ```Clojure (require '[re...

  • real-path

    Converts `f` into real `Path` via [Path#toRealPath](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/ni...

  • realized?

    Returns true if a value has been produced for a promise, delay, future or lazy sequence.

  • reapply-context

    Returns `zloc` with namespaced map sexpr context to all symbols and keywords reapplied from current location downward. ...

  • record?

    Returns true if x is a record

  • recur

    Evaluates exprs and rebinds to the recursion point.

  • recursive-gen

    This is a helper for writing recursive (tree-shaped) generators. The first argument should be a function that takes a ...

  • reduce

    f should be a function of 2 arguments. If val is not supplied, returns the result of applying f to the first 2 items i...

  • reduce

    f should be a function of 2 arguments. Returns a channel containing the single result of applying f to init and the fi...

  • reduce-kv

    Reduces an associative collection. f should be a function of 3 arguments. Returns the result of applying f to init, th...

  • reduced

    Wraps x in a way such that a reduce will terminate with the value x

  • reduced?

    Returns true if x is the result of a call to reduced

  • reductions

    Returns a lazy seq of the intermediate values of the reduction (as per reduce) of coll by f, starting with init.

  • ref

    Creates and returns a Ref with an initial value of x and zero or more options (in any order): :meta metadata-map ...

  • ref-history-count

    Returns the history count of a ref

  • ref-max-history

    Gets the max-history of a ref, or sets it and returns the ref

  • ref-min-history

    Gets the min-history of a ref, or sets it and returns the ref

  • ref-set

    Must be called in a transaction. Sets the value of ref. Returns val.

  • refer

    refers to all public vars of ns, subject to filters. filters can include at most one each of: :exclude list-of-symb...

  • refer-clojure

    Same as (refer 'clojure.core <filters>)

  • reflect

    Alpha - subject to change. Reflect on the type of obj (or obj itself if obj is a class). Return value and options ...

  • regex-node

    Create node representing a regex with `pattern-string`. Use same escape rules for `pattern-string` as you would for `...

  • regular-file?

    Returns true if `f` is a regular file, using [Files/isRegularFile](https://docs.oracle.com/en/java/javase/11/docs/api/ja...

  • reify

    reify creates an object implementing a protocol or interface. reify is a macro with the following structure: (reify ...

  • relative?

    Returns true if `f` represents a relative path (in other words, is not [[absolute?]]).

  • relativize

    Returns relative `Path` by comparing `this` with `other` via [Path#relativize](https://docs.oracle.com/en/java/javase/11...

  • release-pending-sends

    Normally, actions sent directly or indirectly during another action are held until the action completes (changes the a...

  • rem

    remainder of dividing numerator by denominator.

  • remove

    Returns a lazy sequence of the items in coll for which (pred item) returns logical false. pred must be free of side-ef...

  • remove

    Removes the node at loc, returning the loc that would have preceded it in a depth-first walk.

  • remove

    Return `zloc` with current node removed. Returned zipper location is moved to the first non-whitespace node preceding...

  • remove*

    Raw version of [[remove]]. Returns zipper with current node in `zloc` removed, with location at node that would have pr...

  • remove-all-methods

    Removes all of the methods of multimethod.

  • remove-method

    Removes the method of multimethod associated with dispatch-value.

  • remove-ns

    Removes the namespace named by the symbol. Use with caution. Cannot be used to remove the clojure namespace.

  • remove-preserve-newline

    Same as [[remove]] but preserves newlines. Specifically: will trim all whitespace - or whitespace up to first linebre...

  • remove-tap

    Remove f from the tap set.

  • remove-watch

    Removes a watch (set by add-watch) from a reference

  • remove<

    Deprecated - this function will be removed. Use transducer instead

  • remove>

    Deprecated - this function will be removed. Use transducer instead

  • rename

    Returns a rel of the maps in xrel with the keys in kmap renamed to the vals in kmap

  • rename-keys

    Returns the map with the keys in kmap renamed to the vals in kmap

  • render

    render takes the string, the context-map and possibly also opts.

  • render-file

    Parses files if there isn't a memoized post-parse vector ready to go, renders post-parse vector with passed context-m...

  • render-html

    Turn a Clojure data type into a string of HTML.

  • render-template

    vector of ^selmer.node.INodes and a context map.

  • repeat

    Returns a lazy (infinite!, or length n if supplied) sequence of xs.

  • repeatedly

    Takes a function of no args, presumably with side effects, and returns an infinite (or length n if supplied) lazy sequ...

  • repl-caught

    Default :caught hook for repl

  • repl-requires

    A sequence of lib specs that are applied to `require` by default when a new command-line REPL is started.

  • replace

    Given a map of replacement pairs and a vector/collection, returns a vector/seq with any elements = a key in smap repla...

  • replace

    Replaces all instance of match with replacement in s. match/replacement can be: string / string char / char ...

  • replace

    Replaces the node at this loc, without moving

  • replace

    Return `zloc` with the current node replaced by `item`. If `item` is not already a node, an attempt will be made to co...

  • replace*

    Raw version of [[replace]]. Returns zipper with node `item` replacing current node in `zloc`, without moving location. ...

  • replace-children

    Returns `node` replacing current children with `children`.

  • replace-first

    Replaces the first instance of match with replacement in s. match/replacement can be: char / char string / st...

  • replicate

    DEPRECATED: Use 'repeat' instead. Returns a lazy seq of n xs.

  • report

    Generic reporting function, may be overridden to plug in different report formats (e.g., TAP, JUnit). Assertions suc...

  • report

    Issues an async HTTP REPORT request. See `request` for details.

  • request

    Perform request. Returns map with at least `:body`, `:status` Options: * `:uri` - the uri to request (required). ...

  • request

    Issues an async HTTP request and returns a promise object to which the value of `(callback {:opts _ :status _ :headers...

  • request-method

    Request: normalize :method option

  • require

    Loads libs, skipping any that are already loaded. Each argument is either a libspec that identifies a lib, a prefix li...

  • requiring-resolve

    Resolves namespace-qualified sym per 'resolve'. If initial resolve fails, attempts to require sym's namespace and retrie...

  • reset!

    Sets the value of atom to newval without regard for the current value. Returns newval.

  • reset-meta!

    Atomically resets the metadata for a namespace/var/ref/agent/atom

  • reset-vals!

    Sets the value of atom to newval. Returns [old new], the value of the atom before and after the reset.

  • resize

    Creates a new generator with `size` always bound to `n`. (gen/sample (gen/set (gen/resize 200 gen/double))) ...

  • resolve

    same as (ns-resolve *ns* symbol) or (ns-resolve *ns* &env symbol)

  • resolve-arg

    Resolves an arg as passed to an add-tag! handler using the provided context-map. A custom tag handler will receive ...

  • rest

    Returns a possibly empty seq of the items after the first. Calls seq on its argument.

  • restart-agent

    When an agent is failed, changes the agent state to new-state and then un-fails the agent so that sends are allowed ag...

  • return

    Creates a generator that always returns `value`, and never shrinks. You can think of this as the `constantly` of gen...

  • reverse

    Returns a seq of the items in coll in reverse order. Not lazy.

  • reverse

    Returns s with its characters reversed.

  • reversible?

    Returns true if coll implements Reversible

  • right

    Returns the loc of the right sibling of the node at this loc, or nil

  • right

    Return zipper with location moved right to next non-whitespace/non-comment sibling of current node in `zloc`.

  • right*

    Raw version of [[right]]. Returns zipper with location at the right sibling of the current node in `zloc`, or nil. NOT...

  • rightmost

    Returns the loc of the rightmost sibling of the node at this loc, or self

  • rightmost

    Return zipper with location moved to the rightmost non-whitespace/non-comment sibling of current node in `zloc`.

  • rightmost*

    Raw version of [[rightmost]]. Returns zipper with location at the rightmost sibling of the current node in `zloc`, or s...

  • rightmost?

    Return true if at rightmost non-whitespace/non-comment sibling node in `zloc`.

  • rights

    Returns a seq of the right siblings of this loc

  • rint

    Returns the double closest to a and equal to a mathematical integer. If two values are equally close, return the even ...

  • root

    Returns `root` for `path` as `Path`, or `nil` via [Path#getRoot](https://docs.oracle.com/en/java/javase/11/docs/api/java...

  • root

    Returns the root of a Rose tree.

  • root

    zips all the way up and returns the root node, reflecting any changes.

  • root

    Zips all the way up `zloc` and returns the root node, reflecting any changes.

  • root-cause

    Returns the last 'cause' Throwable in a chain of Throwables.

  • root-string

    Return string representing the zipped-up `zloc` zipper.

  • round

    Returns the closest long to a. If equally close to two values, return the one closer to ##Inf. If a is ##NaN => 0 ...

  • rseq

    Returns, in constant time, a seq of the items in rev (which can be a vector or sorted-map), in reverse order. If rev i...

  • rsubseq

    sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a reverse seq of those entries with keys ek for...

  • rsubseq

    sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a reverse seq of those entries with keys ek for...

  • run!

    Runs the supplied procedure (via reduce), for purposes of side effects, on successive items in the collection. Returns...

  • run-server

    Starts a mostly[1] Ring-compatible HttpServer with options: :ip ; Which IP to bind (default: 0.0.0....

  • run-test

    Runs a single test. Because the intent is to run a single test, there is no check for the namespace test-ns-hook.

  • run-test-var

    Runs the tests for a single Var, with fixtures executed around the test, and summary output after.

S

  • s-neg-int

    Deprecated - use (gen/fmap (comp dec -) gen/nat) instead (see also gen/large-integer). Generates negative integers bo...

  • s-pos-int

    Deprecated - use (gen/fmap inc gen/nat) instead (see also gen/large-integer). Generates positive integers bounded by ...

  • same-file?

    Returns `true` if `this` is the same file as `other` via [Files/isSamefile](https://docs.oracle.com/en/java/javase/11/do...

  • sample

    Return a sequence of `num-samples` (default 10) realized values from `generator`. The sequence starts with small va...

  • sample-seq

    Returns an infinite sequence of realized values from `generator`. Note that this function is a dev helper and is not ...

  • satisfies?

    Returns true if x satisfies the protocol

  • scalb

    Returns d * 2^scaleFactor, scaling by a factor of 2. If the exponent is between Double/MIN_EXPONENT and Double/MAX_EXP...

  • scale

    Creates a new generator that modifies the size parameter by the given function. Intended to support generators with si...

  • second

    Same as (first (next x))

  • select

    Returns a set of the elements for which pred is true

  • select-keys

    Returns a map containing only those entries in map whose key is in keys

  • send

    Dispatch an action to an agent. Returns the agent immediately. Subsequently, in a thread from a thread pool, the state...

  • send!

    Sends a message to the WebSocket. `data` can be a CharSequence (e.g. string), byte array or ByteBuffer Options: *...

  • send!

    Sends data to client and returns true if the data was successfully sent, or false if the channel is closed. Data is ...

  • send-checked-websocket-handshake!

    Given an AsyncChannel and `sec-ws-accept` string, unconditionally sends handshake to upgrade given AsyncChannel to a W...

  • send-off

    Dispatch a potentially blocking action to an agent. Returns the agent immediately. Subsequently, in a separate thread,...

  • send-via

    Dispatch an action to an agent. Returns the agent immediately. Subsequently, in a thread supplied by executor, the sta...

  • send-websocket-handshake!

    Returns true iff successfully upgraded a valid WebSocket request.

  • seq

    Returns a seq on the collection. If the collection is empty, returns nil. (seq nil) returns nil. seq also works on ...

  • seq

    Create a lazy-seq of all of the (unique) nodes in a shrink-tree. This assumes that two nodes with the same value have ...

  • seq-to-map-for-destructuring

    Builds a map from a seq as described in https://clojure.org/reference/special_forms#keyword-arguments

  • seq-tree

    Takes a seq of events that logically represents a tree by each event being one of: enter-sub-tree event, exit-sub-tr...

  • seq-zip

    Returns a zipper for nested sequences, given a root sequence

  • seq?

    Return true if x implements ISeq

  • seq?

    Returns true if current node in `zloc` is a sequence.

  • seqable?

    Return true if the seq function is supported for x

  • seque

    Creates a queued seq on another (presumably lazy) seq s. The queued seq will produce a concrete seq in the background,...

  • sequence

    Coerces coll to a (possibly empty) sequence, if it is not already one. Will not force a lazy seq. (sequence nil) yield...

  • sequential?

    Returns true if coll implements Sequential

  • server-port

    Given an HttpServer, returns server's local port.

  • server-status

    Given an HttpServer, returns server's status e/o #{:stopped :running :stopping}.

  • server-stop!

    Signals given `HttpServer` to stop. If already stopping: returns nil. If not already stopping: returns a Promis...

  • set

    Returns a set of the distinct elements of coll.

  • set

    Generates a set of elements from the given generator. If the generator cannot or is unlikely to produce enough distin...

  • set!

    Assigns a new value to a var or field.

  • set!

    Establish thread local binding of dynamic var

  • set-agent-send-executor!

    Sets the ExecutorService to be used by send

  • set-agent-send-off-executor!

    Sets the ExecutorService to be used by send-off

  • set-attribute

    Set `attribute` for `path` to `value` via [Files/setAttribute](https://docs.oracle.com/en/java/javase/11/docs/api/java.b...

  • set-break-handler!

    Register INT signal handler. After calling this, Ctrl-C will cause the given function f to be called with a single ar...

  • set-creation-time

    Sets creation time of `f` to time (`epoch millis` or [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java....

  • set-error-handler!

    Sets the error-handler of agent a to handler-fn. If an action being run by the agent throws an exception or doesn't p...

  • set-error-mode!

    Sets the error-mode of agent a to mode-keyword, which must be either :fail or :continue. If an action being run by th...

  • set-last-modified-time

    Sets last modified time of `f` to `time` (`epoch millis` or [FileTime](https://docs.oracle.com/en/java/javase/11/docs/ap...

  • set-level!

    Prefer `set-min-level!.`

  • set-missing-value-formatter!

    Takes a function of two arguments which is called on a missing value. The function should return the value to be outp...

  • set-node

    Create a node representing a set with `children`. ```Clojure (require '[rewrite-clj.node :as n]) (-> (n/set-n...

  • set-ns-min-level

    Returns given Timbre `config` with its `:min-level` modified so that the given namespace has the specified minimum log...

  • set-ns-min-level!

    Like `set-ns-min-level` but directly modifies `*config*`. Can conveniently set the minimum log level for the curre...

  • set-posix-file-permissions

    Sets `posix-file-permissions` on `f`. Accepts a string like `"rwx------"` or a set of `PosixFilePermission`.

  • set-resource-path!

    set custom location, where templates are being searched for. path may be a java.net.URL instance or a string. If it's ...

  • set-test

    Experimental. Sets :test metadata of the named var to a fn with the given body. The var must already exist. Does no...

  • set-validator!

    Sets the validator-fn for a var/ref/agent/atom. validator-fn must be nil or a side-effect-free fn of one argument, whi...

  • set?

    Returns true if x implements IPersistentSet

  • set?

    Returns true if current node in `zloc` is a set.

  • sexp-as-element

    Convert a single sexp into an Element

  • sexpr

    Return `node` converted to form. Optional `opts` can specify: - `:auto-resolve` specify a function to customize nam...

  • sexpr

    Return s-expression (the Clojure form) of current node in `zloc`. See docs for [sexpr nuances](/doc/01-user-guide.ado...

  • sexpr-able?

    Return true if [[sexpr]] is supported for `node`'s element type. See [related docs in user guide](/doc/01-user-guide...

  • sexpr-able?

    Return true if current node's element type in `zloc` can be [[sexpr]]-ed. See [related docs in user guide](/doc/01-u...

  • sexprs

    Return forms for `nodes`. Nodes that do not represent s-expression are skipped. Optional `opts` can specify: - `:au...

  • sexps-as-fragment

    Convert a compact prxml/hiccup-style data structure into the more formal tag/attrs/content format. A seq of elements ...

  • sh

    Convenience function similar to `clojure.java.shell/sh` that sets `:out` and `:err` to `:string` by default and blocks...

  • sh

    Passes the given strings to Runtime.exec() to launch a sub-process. Options are :in may be given followed by ...

  • shell

    Convenience function around `process` that was originally in `babashka.tasks`. Defaults to inheriting I/O: input is re...

  • short

    Coerce to short

  • short-array

    Creates an array of shorts

  • shorts

    Casts to shorts[]

  • shrink-2

    Creates a new generator like `gen`, but will consider nodes for shrinking even if their parent passes the test (up to ...

  • shuffle

    Return a random permutation of coll

  • shuffle

    Creates a generator that generates random permutations of `coll`. Shrinks toward the original collection: `coll`. `col...

  • shutdown-agents

    Initiates a shutdown of the thread pools that back the agent system. Running actions will complete, but no new actions...

  • signum

    Returns the signum function of d - zero for zero, 1.0 if >0, -1.0 if <0. If d is ##NaN => ##NaN See: https://docs.or...

  • simple-dispatch

    The pretty print dispatch function for simple data structure format.

  • simple-ident?

    Return true if x is a symbol or keyword without a namespace

  • simple-keyword?

    Return true if x is a keyword without a namespace

  • simple-symbol?

    Return true if x is a symbol without a namespace

  • simple-type

    Generates a variety of scalar types.

  • simple-type-equatable

    Like gen/simple-type, but only generates objects that can be equal to other objects (e.g., not a NaN).

  • simple-type-printable

    Generates a variety of scalar types, with printable strings.

  • simple-type-printable-equatable

    Like gen/simple-type-printable, but only generates objects that can be equal to other objects (e.g., not a NaN).

  • sin

    Returns the sine of an angle. If a is ##NaN, ##-Inf, ##Inf => ##NaN If a is zero => zero with the same sign as a S...

  • sinh

    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:...

  • size

    Returns the size of a file (in bytes).

  • size-bounded-bigint

    Generates an integer (long or bigint) bounded exclusively by ±2^(6*size).

  • sized

    Creates a generator that depends on the size parameter. `sized-gen` is a function that takes an integer and returns ...

  • skip

    Return zipper with location moved to first location not satisfying predicate `p?` starting from the node in `zloc` an...

  • skip-whitespace

    Return zipper with location moved to first non-whitespace/non-comment starting from current node in `zloc` and traver...

  • skip-whitespace-left

    Return zipper with location moved to first non-whitespace/non-comment starting from current node in `zloc` traversing le...

  • sliding-buffer

    Returns a buffer of size n. When full, puts will complete, and be buffered, but oldest elements in buffer will be drop...

  • slurp

    Opens a reader on f and reads all its contents, returning a string. See clojure.java.io/reader for a complete list of ...

  • slurp-backward

    DEPRECATED: we recommend [[slurp-backward-into]] for more control. Returns `zloc` with node to the left of nearest el...

  • slurp-backward-fully

    DEPRECATED: We recommend instead [[slurp-backward-fully-into]] for more control. Returns `zloc` with all left sibling...

  • slurp-backward-fully-into

    Returns `zloc` with all left sibling nodes of nearest eligible sequnece slurped into that sequence else `zloc` See al...

  • slurp-backward-into

    Returns `zloc` with node to the left of nearest eligible sequence slurped into that sequence else `zloc` unchanged. O...

  • slurp-forward

    DEPRECATED: we recommend [[slurp-forward-into]] instead for more control. Return `zloc` with node to the right of nea...

  • slurp-forward-fully

    DEPRECATED: We recommend [[slurp-forward-fully-into]]] for more control. Return `zloc` with all right sibling nodes o...

  • slurp-forward-fully-into

    Return `zloc` with all right sibling nodes of nearest eligible sequence slurped into that sequence else `zloc` unchanged...

  • slurp-forward-into

    Return `zloc` with node to the right of nearest eligible sequence slurped into that sequence else `zloc` unchanged. O...

  • small-integer

    Generates a positive or negative integer bounded by the generator's `size` parameter. Shrinks to zero.

  • solo-mode

    Sets the solo mode of the mix. mode must be one of :mute or :pause

  • some

    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 pre...

  • some->

    When expr is not nil, threads it into the first form (via ->), and when that result is not nil, through the next etc

  • some->>

    When expr is not nil, threads it into the first form (via ->>), and when that result is not nil, through the next etc

  • some-fn

    Takes a set of predicates and returns a function f that returns the first logical true value returned by one of its co...

  • some?

    Returns true if x is not nil, false otherwise.

  • sort

    Returns a sorted sequence of the items in coll. If no comparator is supplied, uses compare. comparator must implement...

  • sort-by

    Returns a sorted sequence of the items in coll, where the sort order is determined by comparing (keyfn item). If no c...

  • sorted-map

    keyval => key val Returns a new sorted map with supplied mappings. If any keys are equal, they are handled as if by...

  • sorted-map-by

    keyval => key val Returns a new sorted map with supplied mappings, using the supplied comparator. If any keys are e...

  • sorted-set

    Returns a new sorted set with supplied keys. Any equal keys are handled as if by repeated uses of conj.

  • sorted-set

    Generates a sorted set of elements from the given generator. If the generator cannot or is unlikely to produce enough...

  • sorted-set-by

    Returns a new sorted set with supplied keys, using the supplied comparator. Any equal keys are handled as if by repea...

  • sorted?

    Returns true if coll implements Sorted

  • source

    Prints the source code for the given symbol, if it can find it. This requires that the symbol resolve to a Var define...

  • source-logging-push-back-reader

    Creates a SourceLoggingPushbackReader from a given string or PushbackReader

  • source-reader

    Coerces x into source-logging-reader to be used with parse-next. Accepts string or `java.io.Reader`

  • spaces

    Create node representing `n` spaces.

  • spec->opts

    Converts spec into opts format. Pass existing opts as optional second argument.

  • special-symbol?

    Returns true if s names a special form

  • spit

    Opposite of slurp. Opens f with writer, writes content, then closes f. Options passed to clojure.java.io/writer.

  • spit-appender

    Returns a simple `spit` file appender for Clojure.

  • spit-appender

    Returns a simple `spit` file appender for Clojure.

  • splice

    See [[rewrite-clj.zip/splice]]

  • splice

    Return zipper with the children of the current node in `zloc` merged into itself. (akin to Clojure's `unquote-splicin...

  • splice-killing-backward

    Return `zloc` with current and right siblings spliced into parent sequence. - `(a (b c |d e f) g) => (a |d e f g)` ...

  • splice-killing-forward

    Return `zloc` with left siblings spliced into parent sequence. - `(a (b c |d e f) g) => (a b |c g)`

  • split

    Takes a predicate and a source channel and returns a vector of two channels, the first of which will contain the value...

  • split

    Splits string on a regular expression. Optional argument limit is the maximum number of parts. Not lazy. Returns vect...

  • split

    Returns two new RNGs [rng1 rng2], which should generate sufficiently independent random data. Note: to maintain ind...

  • split

    Return `zloc` with parent sequence split into to two sequences at current node. Location is retained. If split would r...

  • split-at

    Returns a vector of [(take n coll) (drop n coll)]

  • split-at-pos

    In-string aware split. Returns `zloc` with node found at `pos` split. If `pos` is inside a string, splits string into ...

  • split-classpath

    Returns the classpath as a seq of strings, split by the platform specific path separator.

  • split-ext

    Splits `path` on extension. If provided, a specific extension `ext`, the extension (without dot), will be used for spl...

  • split-lines

    Splits s on \n or \r\n. Trailing empty lines are not returned.

  • split-n

    Returns a collection of `n` RNGs, which should generate sufficiently independent random data. Note: to maintain ind...

  • split-paths

    Splits a `joined-paths` list given as a string joined by the OS-specific [[path-separator]] into a vec of paths. On UN...

  • split-with

    Returns a vector of [(take-while pred coll) (drop-while pred coll)]

  • splitv-at

    Returns a vector of [(into [] (take n) coll) (drop n coll)]

  • spy

    Evaluates named form and logs its result. Always returns the result. Defaults to `:debug` logging level, and uneval...

  • spyf

    Evaluates expr and may write (logf level fmt result) to the log. Returns the result of expr. Defaults to :debug log le...

  • sqrt

    Returns the positive square root of a. If a is ##NaN or negative => ##NaN If a is ##Inf => ##Inf If a is zero => a...

  • ssl-configurer

    SNI-capable SSL configurer. May be used as an argument to `org.httpkit.client/make-client`: (make-client :ssl-con...

  • stacktrace

    Returns list of stacktrace element maps from exception, if available.

  • StackTraceElement->vec

    Constructs a data representation for a StackTraceElement: [class method file line]

  • start

    Takes a process builder, calls start and returns a process (as record).

  • start

    Start an external command, defined in args. The process environment vars are inherited from the parent by default (u...

  • starts-with?

    Returns `true` if path `this` starts with path `other` via [Path#startsWith](https://docs.oracle.com/en/java/javase/11/d...

  • starts-with?

    True if s starts with substr.

  • stderr

    Given a process, return the stderr of the external process (an InputStream)

  • stdin

    Given a process, return the stdin of the external process (an OutputStream)

  • stdout

    Given a process, return the stdout of the external process (an InputStream)

  • str

    With no args, returns the empty string. With one arg x, returns x.toString(). (str nil) returns the empty string. Wit...

  • str->posix

    Converts a string `s` to a set of `PosixFilePermission`. `s` is a string like `"rwx------"`.

  • stream-into!

    Returns a new coll consisting of coll with all of the items of the stream conjoined. This is a terminal operation on t...

  • stream-reduce!

    Works like reduce but takes a java.util.stream.BaseStream as its source. Honors 'reduced', is a terminal operation on ...

  • stream-seq!

    Takes a java.util.stream.BaseStream instance s and returns a seq of its contents. This is a terminal operation on the ...

  • stream-transduce!

    Works like transduce but takes a java.util.stream.BaseStream as its source. This is a terminal operation on the stream...

  • string

    Generates strings. May generate unprintable characters.

  • string

    Return the string version of `node`.

  • string

    Return string representing the current node in `zloc`.

  • string-alpha-numeric

    Deprecated - use string-alphanumeric instead. Generates alphanumeric strings.

  • string-alphanumeric

    Generates alphanumeric strings.

  • string-ascii

    Generates ascii strings.

  • string-node

    Create node representing a string value where `lines` can be a sequence of strings or a single string. When `lines` i...

  • string-push-back-reader

    Creates a PushbackReader from a given string

  • string?

    Return true if x is a String

  • stringify-keys

    Recursively transforms all map keys from keywords to strings.

  • strip-ext

    Strips extension for `path` via [[split-ext]].

  • sub

    Subscribes a channel to a topic of a pub. By default the channel will be closed when the source closes, but can be ...

  • subedit->

    Like `->`, threads `zloc`, as an isolated sub-tree through forms, then zips up to, and locates at, the root of the mo...

  • subedit->

    Like `->`, threads `zloc`, as an isolated sub-tree through forms, then zips up to, and locates at, the root of the mo...

  • subedit->>

    Like `->>`. Threads `zloc`, as an isolated sub-tree through forms, then zips up to, and locates at, the root of th...

  • subedit->>

    Like `->>`. Threads `zloc`, as an isolated sub-tree through forms, then zips up to, and locates at, the root of th...

  • subedit-node

    Return zipper replacing current node in `zloc` with result of `f` applied to said node as an isolated sub-tree. The r...

  • subedit-node

    Return zipper replacing current node in `zloc` with result of `f` applied to said node as an isolated sub-tree. The r...

  • subs

    Returns the substring of s beginning at start inclusive, and ending at end (defaults to length of string), exclusive.

  • subseq

    sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a seq of those entries with keys ek for which...

  • subseq

    sc must be a sorted collection, test(s) one of <, <=, > or >=. Returns a seq of those entries with keys ek for which...

  • subset?

    Is set1 a subset of set2?

  • subtract-exact

    Returns the difference of x and y, throws ArithmeticException on overflow. See: https://docs.oracle.com/javase/8/docs/...

  • subvec

    Returns a persistent vector of the items in vector from start (inclusive) to end (exclusive). If end is not supplied,...

  • subzip

    Create and return a zipper whose root is the current node in `zloc`. See [docs on sub editing](/doc/01-user-guide.ad...

  • subzip

    Create and return a zipper whose root is the current node in `zloc`. See [docs on sub editing](/doc/01-user-guide.ad...

  • successful?

    Returns true if the given test summary indicates all tests were successful, false otherwise.

  • such-that

    Creates a generator that generates values from `gen` that satisfy predicate `pred`. Care is needed to ensure there is ...

  • suffix

    Return zipper with the current node in `zloc` suffixed with string `s`. Operates on token node or a multi-line node, ...

  • summarize

    Reduce options specs into a options summary for printing at a terminal. Note that the specs argument should be the com...

  • supers

    Returns the immediate and indirect superclasses and interfaces of c, if any

  • superset?

    Is set1 a superset of set2?

  • swap!

    Atomically swaps the value of atom to be: (apply f current-value-of-atom args). Note that f may be called multiple t...

  • swap-vals!

    Atomically swaps the value of atom to be: (apply f current-value-of-atom args). Note that f may be called multiple t...

  • sym-link?

    Determines if `f` is a symbolic link via [Files/isSymbolicLink](https://docs.oracle.com/en/java/javase/11/docs/api/java....

  • symbol

    Returns a Symbol with the given namespace and name. Arity-1 works on strings, keywords, and vars.

  • symbol

    Generates symbols without namespaces.

  • symbol-node?

    Returns true if `n` is a node representing a symbol.

  • symbol-ns

    Generates symbols with namespaces.

  • symbol?

    Return true if x is a Symbol

  • sync

    transaction-flags => TBD, pass nil for now Runs the exprs (in an implicit do) in a transaction that encompasses expr...

  • syntax-quote-node

    Create node representing a single syntax-quoted form where `children` is either a sequence of nodes or a single node....

T

  • table-alignment

    Takes a table-ish node, returns a map suitable for hiccup style attributes with a :text-align property.

  • tag

    Returns keyword representing type of `node`.

  • tag

    Return tag of current node in `zloc`.

  • tag-content

    Parses the content of a tag. Returns a map of tag-name -> args & content, which can then be interpreted by the callin...

  • tagged-literal

    Construct a data representation of a tagged literal from a tag symbol and a form.

  • tagged-literal?

    Return true if the value is the data representation of a tagged literal

  • tagged-value

    Creates a TaggedValue object.

  • take

    Returns a lazy sequence of the first n items in coll, or all items if there are fewer than n. Returns a stateful tran...

  • take

    Returns a channel that will return, at most, n items from ch. After n items have been returned, or ch has been closed...

  • take!

    Asynchronously takes a val from port, passing to fn1. Will pass nil if closed. If on-caller? (default true) is true, ...

  • take-last

    Returns a seq of the last n items in coll. Depending on the type of coll may be no better than linear time. For vect...

  • take-nth

    Returns a lazy seq of every nth item in coll. Returns a stateful transducer when no collection is provided.

  • take-while

    Returns a lazy sequence of successive items from coll while (pred item) returns logical true. pred must be free of sid...

  • tan

    Returns the tangent of an angle. If a is ##NaN, ##-Inf, ##Inf => ##NaN If a is zero => zero with the same sign as a ...

  • tanh

    Returns the hyperbolic tangent of x, sinh(x)/cosh(x). If x is ##NaN => ##NaN If x is zero => zero, with same sign ...

  • tap

    Copies the mult source onto the supplied channel. By default the channel will be closed when the source closes, but...

  • tap>

    sends x to any taps. Will not block. Returns true if there was room in the queue, false if not (dropped).

  • temp-dir

    Returns `java.io.tmpdir` property as path.

  • test

    test [v] finds fn at key :test in var metadata and calls it, presuming failure will throw exception

  • test-var

    If v has a function in its :test metadata, calls that function, with *testing-vars* bound to (conj *testing-vars* v).

  • test-vars

    Groups vars by their namespace and runs test-vars on them with appropriate fixtures applied.

  • testing

    Adds a new string to the list of testing contexts. May be nested, but must occur inside a test function (deftest).

  • testing-contexts-str

    Returns a string representation of the current test context. Joins strings in *testing-contexts* with spaces.

  • testing-vars-str

    Returns a string representation of the current test. Renders names in *testing-vars* as a list, then the source file ...

  • the-ns

    If passed a namespace, returns it. Else, when passed a symbol, returns the namespace named by it, throwing an exceptio...

  • thread-bound?

    Returns true if all of the vars provided as arguments have thread-local bindings. Implies that set!'ing the provided ...

  • thread-call

    Executes f in another thread, returning immediately to the calling thread. Returns a channel which will receive the re...

  • throw

    Throw an exception.

  • throw-on-exceptional-status-code

    Response: throw on exceptional status codes

  • Throwable->map

    Constructs a data representation for a Throwable with keys: :cause - root cause message :phase - error phase ...

  • time

    Evaluates expr and prints the time it took. Returns the value of expr.

  • to-array

    Returns an array of Objects containing the contents of coll, which can be any Collection. Maps to java.util.Collectio...

  • to-array-2d

    Returns a (potentially-ragged) 2-dimensional array of Objects containing the contents of coll, which can be any Collec...

  • to-chan

    Deprecated - use to-chan! or to-chan!!

  • to-chan!

    Creates and returns a channel which contains the contents of coll, closing when exhausted. If accessing coll might ...

  • to-chan!!

    Like to-chan! for use when accessing coll might block, e.g. a lazy seq of blocking operations

  • to-degrees

    Converts an angle in radians to an approximate equivalent angle in degrees. See: https://docs.oracle.com/javase/8/docs...

  • to-file

    Coerce f to a file per clojure.java.io/file and return a ProcessBuilder.Redirect writing to the file. Set ':append' in...

  • to-radians

    Converts an angle in degrees to an approximate equivalent angle in radians. See: https://docs.oracle.com/javase/8/docs...

  • to-uri

    Convert a value into a URI.

  • toc->hiccup

    Transform a toc node into hiccup data, suitable for using as renderer function in hiccup transform, see [->hiccup](#mark...

  • toggle

    Atomically sets the state(s) of one or more channels in a mix. The state map is a map of channels -> channel-state-map...

  • token-node

    Create node for an unspecified token of `value`. ```Clojure (require '[rewrite-clj.node :as n]) (-> (n/token-...

  • tokenize

    Tokenize string to list of individual space separated arguments. If argument contains space you can wrap it with `'` o...

  • trace

    Trace level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • trace

    Trace level logging using print-style args. See logp for details.

  • tracef

    Trace level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • tracef

    Trace level logging using format. See logf for details.

  • trampoline

    trampoline can be used to convert algorithms requiring mutual recursion without stack consumption. Calls f with suppli...

  • transduce

    reduce with a transformation of f (xf). If init is not supplied, (f) will be called to produce it. f should be a reduc...

  • transduce

    async/reduces a channel with a transformation (xform f). Returns a channel containing the result. ch must close befor...

  • transient

    Returns a new, transient version of the collection, in constant time. Transients support a parallel set of 'changing'...

  • tree-seq

    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 ...

  • trim

    Removes whitespace from both ends of string.

  • trim-newline

    Removes all trailing newline \n or return \r characters from string. Similar to Perl's chomp.

  • triml

    Removes whitespace from the left side of string.

  • trimr

    Removes whitespace from the right side of string.

  • true?

    Returns true if x is the value true, false otherwise.

  • try

    try/catch/finally expression.

  • try*

    Like `try`, but `catch` clause class may be: `:ex-info` -- Catches only `ExceptionInfo` `:common` --- Catc...

  • try*

    Like `try`, but `catch` clause class may be: `:ex-info` -- Catches only `ExceptionInfo` `:common` --- Catc...

  • try-expr

    Used by the 'is' macro to catch unexpected exceptions. You don't call this.

  • tty?

    Returns true if the given file descriptor is associated with a terminal. fd should be :stdin, :stdout, or :stderr.

  • tuple

    Creates a generator that returns a vector, whose elements are chosen from the generators in the same position. The ind...

  • type

    Returns the :type metadata of x, or its Class if none

U

  • ulp

    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 ...

  • unblocking-buffer?

    Returns true if a channel created with buff will never block. That is to say, puts into this buffer will never cause ...

  • unchecked-add

    Returns the sum of x and y, both long. Note - uses a primitive operator subject to overflow.

  • unchecked-add-int

    Returns the sum of x and y, both int. Note - uses a primitive operator subject to overflow.

  • unchecked-byte

    Coerce to byte. Subject to rounding or truncation.

  • unchecked-char

    Coerce to char. Subject to rounding or truncation.

  • unchecked-dec

    Returns a number one less than x, a long. Note - uses a primitive operator subject to overflow.

  • unchecked-dec-int

    Returns a number one less than x, an int. Note - uses a primitive operator subject to overflow.

  • unchecked-divide-int

    Returns the division of x by y, both int. Note - uses a primitive operator subject to truncation.

  • unchecked-double

    Coerce to double. Subject to rounding.

  • unchecked-float

    Coerce to float. Subject to rounding.

  • unchecked-inc

    Returns a number one greater than x, a long. Note - uses a primitive operator subject to overflow.

  • unchecked-inc-int

    Returns a number one greater than x, an int. Note - uses a primitive operator subject to overflow.

  • unchecked-int

    Coerce to int. Subject to rounding or truncation.

  • unchecked-long

    Coerce to long. Subject to rounding or truncation.

  • unchecked-multiply

    Returns the product of x and y, both long. Note - uses a primitive operator subject to overflow.

  • unchecked-multiply-int

    Returns the product of x and y, both int. Note - uses a primitive operator subject to overflow.

  • unchecked-negate

    Returns the negation of x, a long. Note - uses a primitive operator subject to overflow.

  • unchecked-negate-int

    Returns the negation of x, an int. Note - uses a primitive operator subject to overflow.

  • unchecked-remainder-int

    Returns the remainder of division of x by y, both int. Note - uses a primitive operator subject to truncation.

  • unchecked-short

    Coerce to short. Subject to rounding or truncation.

  • unchecked-subtract

    Returns the difference of x and y, both long. Note - uses a primitive operator subject to overflow.

  • unchecked-subtract-int

    Returns the difference of x and y, both int. Note - uses a primitive operator subject to overflow.

  • underive

    Removes a parent/child relationship between parent and tag. h must be a hierarchy obtained from make-hierarchy, if not...

  • uneval-node

    Create node representing an unevaled form with `children`. ```Clojure (require '[rewrite-clj.node :as n]) (->...

  • union

    Return a set that is the union of the input sets

  • unique

    Deprecated - this function will be removed. Use transducer instead

  • unixify

    Returns path as string with Unix-style file separators (`/`).

  • unlock

    Issues an async HTTP UNLOCK request. See `request` for details.

  • unmark

    Returns `m` without positional data wrapper, else `m` if not wrapped. See [docs](/doc/01-user-guide.adoc#mark).

  • unmix

    Removes ch as an input to the mix

  • unmix-all

    removes all inputs from the mix

  • unquote-node

    Create node representing a single unquoted form where `children` is either a sequence of nodes or a single node. ...

  • unquote-splicing-node

    Create node representing a single unquote-spliced form where `children` is either a sequence of nodes or a single nod...

  • unread

    Pushes back a single character on to the stream

  • unreduced

    If x is reduced?, returns (deref x), else returns x

  • unsigned-bit-shift-right

    Bitwise shift right, without sign-extension.

  • unsub

    Unsubscribes a channel from a topic of a pub

  • unsub-all

    Unsubscribes all channels from a pub, or a topic of a pub

  • untap

    Disconnects a target channel from a mult

  • untap-all

    Disconnects all target channels from a mult

  • unzip

    Unzips `zip-file` to `dest` directory (default `"."`). Options: * `:replace-existing` - `true` / `false`: overwri...

  • up

    Returns the loc of the parent of the node at this loc, or nil if at the top

  • up

    Return zipper with location moved up to next non-whitespace/non-comment parent of current node in `zloc`, or `nil` if at...

  • up*

    Raw version of [[up]]. Returns zipper with the location at the parent of current node in `zloc`, or nil if at the top...

  • update

    'Updates' a value in an associative structure, where k is a key and f is a function that will take the old value and...

  • update-file

    Updates the contents of text file `path` using `f` applied to old contents and `xs`. Returns the new contents. Opti...

  • update-in

    'Updates' a value in a nested associative structure, where ks is a sequence of keys and f is a function that will take...

  • update-keys

    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 a...

  • update-proxy

    Takes a proxy instance and a map of strings (which must correspond to methods of the proxy superclass/superinterfaces)...

  • update-tags

    Assocs in the passed tag to the tags map.

  • update-vals

    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...

  • upper-case

    Converts string to all upper-case.

  • uri-file

    Dummy file name for :require'ing xmlns uri

  • uri-with-query

    We can't use the URI constructor because it encodes all arguments for us. See https://stackoverflow.com/a/77971448/626...

  • uri?

    Return true if x is a java.net.URI

  • use

    Like 'require, but also refers to each lib's namespace using clojure.core/refer. Use :use in the ns macro in preferenc...

  • use-fixtures

    Wrap test runs in a fixture function to perform setup and teardown. Using a fixture-type of :each wraps every test i...

  • uuid

    Generates a random type-4 UUID. Does not shrink.

  • uuid?

    Return true if x is a java.util.UUID

V

  • val

    Returns the value in the map entry.

  • vals

    Returns a sequence of the map's values, in the same order as (seq map).

  • value

    DEPRECATED: Get first child as a pair of tag/sexpr (if inner node), or just the node's own sexpr. (use explicit analy...

  • value

    DEPRECATED. Return a tag/s-expression pair for inner nodes, or the s-expression itself for leaves.

  • var->symbol

    Returns a fully qualified symbol from a `sci.lang.Var`

  • var-get

    Gets the value in the var object

  • var-node

    Create node representing a var where `children` is either a sequence of nodes or a single node. ```Clojure (re...

  • var-set

    Sets the value in the var object to val. The var must be thread-locally bound.

  • var?

    Returns true if v is of type clojure.lang.Var

  • vary-meta

    Returns an object of the same type and value as obj, with (apply f (meta obj) args) as its metadata.

  • vec

    Creates a new vector containing the contents of coll. Java arrays will be aliased and should not be modified.

  • vector

    Creates a new vector containing the args.

  • vector

    Creates a generator of vectors whose elements are chosen from `generator`. The count of the vector will be bounded by ...

  • vector-distinct

    Generates a vector of elements from the given generator, with the guarantee that the elements will be distinct. If ...

  • vector-distinct-by

    Generates a vector of elements from the given generator, with the guarantee that (map key-fn the-vector) will be disti...

  • vector-node

    Create a node representing a vector with `children`. ```Clojure (require '[rewrite-clj.node :as n]) (-> (n/ve...

  • vector-zip

    Returns a zipper for nested vectors, given a root vector

  • vector?

    Return true if x implements IPersistentVector

  • vector?

    Returns true if current node in `zloc` is a vector.

  • volatile!

    Creates and returns a Volatile with an initial value of val.

  • volatile?

    Returns true if x is a volatile.

  • vreset!

    Sets the value of volatile to newval without regard for the current value. Returns newval.

  • vswap!

    Non-atomically swaps the value of the volatile as if: (apply f current-value-of-vol args). Returns the value that ...

W

  • wait-for-path

    Waits for file path to be available. Options map supports `:default`, `:timeout` and `:pause`. If `:timeout` is provid...

  • wait-for-port

    Waits for TCP connection to be available on host and port. Options map supports `:timeout` and `:pause`. If `:timeout`...

  • walk

    Traverses form, an arbitrary data structure. inner and outer are functions. Applies inner to each element of form, b...

  • walk-file-tree

    Walks `f` using [Files/walkFileTree](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Files.ht...

  • warn

    Warn level logging using print-style args. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • warn

    Warn level logging using print-style args. See logp for details.

  • warnf

    Warn level logging using format. Use the 'logging.readable' namespace to avoid wrapping args in pr-str.

  • warnf

    Warn level logging using format. See logf for details.

  • websocket

    Builds `java.net.http.Websocket` client. * `:uri` - the uri to request (required). May be a string or map of `:sc...

  • websocket-handshake-check

    Returns `sec-ws-accept` string iff given Ring request is a valid WebSocket handshake.

  • when

    Evaluates test. If logical true, evaluates body in an implicit do.

  • when-first

    bindings => x xs Roughly the same as (when (seq xs) (let [x (first xs)] body)) but xs is evaluated only once

  • when-let

    bindings => binding-form test When test is true, evaluates body with binding-form bound to the value of test

  • when-not

    Evaluates test. If logical false, evaluates body in an implicit do.

  • when-some

    bindings => binding-form test When test is not nil, evaluates body with binding-form bound to the value of test

  • which

    Returns `Path` to first executable `program` found in `:paths` `opt`, similar to the `which` Unix command. Default for...

  • which-all

    Returns every `Path` to `program` found in ([[exec-paths]]). See [[which]].

  • while

    Repeatedly executes body while test expression is true. Presumes some side-effect will cause test to become false/nil....

  • whitespace-node

    Create whitespace node of string `s`, where `s` is one or more space characters.

  • whitespace-nodes

    Convert string `s` of whitespace to whitespace/newline nodes.

  • whitespace-or-comment?

    Check whether the given node represents whitespace or comment.

  • whitespace-or-comment?

    Returns true when current node in `zloc` is whitespace or a comment.

  • whitespace?

    Returns true if `node` represents Clojure whitespace.

  • whitespace?

    Returns true when the current the node in `zloc` is a Clojure whitespace (which includes the comma).

  • windows?

    Returns true if OS is Windows.

  • with-bindings

    Takes a map of Var/value pairs. Installs for the given Vars the associated values as thread-local bindings. Then execu...

  • with-bindings

    Executes body in the context of thread-local bindings for several vars that often need to be set!: *ns* *warn-on-refle...

  • with-bindings

    Macro for binding sci vars. Must be called with map of sci dynamic vars to values. Used in babashka.

  • with-bindings*

    Takes a map of Var/value pairs. Installs for the given Vars the associated values as thread-local bindings. Then calls...

  • with-channel

    DEPRECATED: this macro has potential race conditions, Ref. #318. Prefer `as-channel` instead.

  • with-in-str

    Evaluates body in a context in which *in* is bound to a fresh StringReader initialized with the string s.

  • with-in-str

    Evaluates body in a context in which sci's *in* is bound to a fresh StringReader initialized with the string s.

  • with-level

    Prefer `with-min-level`.

  • with-local-vars

    varbinding=> symbol init-expr Executes the exprs in a context in which the symbols are bound to vars with per-threa...

  • with-meta

    Returns an object of the same type and value as obj, with map m as its metadata.

  • with-open

    bindings => [name init ...] Evaluates body in a try expression with names bound to the values of the inits, and a f...

  • with-out-str

    Evaluates exprs in a context in which *out* is bound to a fresh StringWriter. Returns the string created by any neste...

  • with-out-str

    Evaluates exprs in a context in which sci's *out* is bound to a fresh StringWriter. Returns the string created by any...

  • with-pprint-dispatch

    Execute body with the pretty print dispatch function bound to function.

  • with-precision

    Sets the precision and rounding mode to be used for BigDecimal operations. Usage: (with-precision 10 (/ 1M 3)) or: ...

  • with-read-known

    Evaluates body with *read-eval* set to a "known" value, i.e. substituting true for :unknown if necessary.

  • with-redefs

    binding => var-symbol temp-value-expr Temporarily redefines Vars while executing the body. The temp-value-exprs wi...

  • with-redefs-fn

    Temporarily redefines Vars during a call to func. Each val of binding-map will replace the root value of its key whic...

  • with-sh-dir

    Sets the directory for use with sh, see sh for details.

  • with-sh-env

    Sets the environment for use with sh, see sh for details.

  • with-temp-dir

    Evaluates body with binding-name bound to the result of `(create-temp-dir options)`. See [[create-temp-dir]] for valid...

  • with-test

    Takes any definition form (that returns a Var) as the first argument. Remaining body goes in the :test metadata functi...

  • with-test-out

    Runs body with *out* bound to the value of *test-out*.

  • wrap-around

    Wrap current node with a given type `t` where `t` can be one of `:vector`, `:list`, `:set`, `:map` `:fn`. - `|123 => ...

  • wrap-fully-forward-slurp

    Create a new seq node of type `t` left of `zloc` then slurp fully into the new node - `[1 |2 3 4] => [1 [|2 3 4]]`

  • writable?

    Returns true if `f` is writable via [Files/isWritable](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java...

  • write

    Write an object subject to the current bindings of the printer control variables. Use the kw-args argument to override i...

  • write

    Writes a value to a transit writer.

  • write-bencode

    Write the given thing to the output stream. “Thing” means here a string, map, sequence or integer. Alternatively an By...

  • write-bytes

    Writes `bytes` to `path` via [Files/write](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Fi...

  • write-csv

    Writes data to writer in CSV-format. Valid options are :separator (Default \,) :quote (Default \") :q...

  • write-handler

    Creates a transit WriteHandler whose tag, rep, stringRep, and verboseWriteHandler methods invoke the provided fns....

  • write-handler-map

    Returns a HandlerMapContainer containing a WriteHandlerMap containing all the default handlers for Clojure and Java an...

  • write-lines

    Writes `lines`, a seqable of strings to `path` via [Files/write](https://docs.oracle.com/en/java/javase/11/docs/api/java...

  • write-meta

    For :transform. Will write any metadata present on the value.

  • write-out

    Write an object to *out* subject to the current bindings of the printer control variables. Use the kw-args argument to ...

  • writer

    Attempts to coerce its argument into an open java.io.Writer. Default implementations always return a java.io.Buffered...

  • writer

    Creates a writer over the provided destination `out` using the specified format, one of: :msgpack, :json or :json-ver...

X

  • xdg-cache-home

    Path representing the base directory relative to which user-specific non-essential data files should be stored as descri...

  • xdg-config-home

    Path representing the base directory relative to which user-specific configuration files should be stored as described i...

  • xdg-data-home

    Path representing the base directory relative to which user-specific data files should be stored as described in the [XD...

  • xdg-state-home

    Path representing the base directory relative to which user-specific state files should be stored as described in the [X...

  • xml-comment

    Create a Comment node

  • xml-seq

    A tree seq on the xml elements as per xml/parse

  • xml-zip

    Returns a zipper for xml elements (as from xml/parse), given a root element

Z

  • zero?

    Returns true if num is zero, else false

  • zip

    Zips entry or `entries` into `zip-file`. An entry may be a file or directory. Directories are included recursively and...

  • zip

    Apply `f` to the sequence of Rose trees `roses`.

  • zipmap

    Returns a map with the keys mapped to the corresponding vals.

  • zipper

    Creates a new zipper structure. branch? is a fn that, given a node, returns true if can have children, even if it ...