diff --git a/core/procs.go b/core/procs.go index 3132aa59e..ae06a6064 100644 --- a/core/procs.go +++ b/core/procs.go @@ -37,7 +37,7 @@ const ( PRINT_IF_NOT_NIL ) -const VERSION = "v0.14.2" +const VERSION = "v0.15.0" const ( CLJ Dialect = iota diff --git a/docs/index.html b/docs/index.html index 98cd8d947..52ab44da9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -42,6 +42,9 @@
A collection of variations on Clojure's core macros.
details +Provide API for Bolt embedded database https://github.com/etcd-io/bbolt.
+ details +(Concrete reference type)
Wraps the Go 'math/big.Int' type
(Concrete type)
+ Wraps Bolt DB type
bound in a repl to the most recent value printed
- source + sourcebound in a repl to the second most recent value printed
- source + sourcebound in a repl to the third most recent value printed
- source + sourcebound in a repl to the most recent exception caught by the repl
- source + sourceTakes a value from ch.
Returns nil if ch is closed and nothing is available on ch.
Blocks if nothing is available on ch and ch is not closed.
Binds name to expr, evaluates the first form in the lexical context
of that binding, then binds name to that result, repeating for each
successive form, returning the result of the last form.
Associates a value in a nested associative structure, where ks is a
sequence of keys and v is the new value and returns a new nested structure.
If any levels do not exist, hash-maps will be created.
(associative? coll)
Returns true if coll implements Associative
- source + sourceIf coll is counted? returns its count, else will count at most the first n
elements of coll using its seq
Returns true if x implements Callable. Note that many data structures
(e.g. sets and maps) implement Callable.
(chan n)
Returns a new channel with an optional buffer of size n.
- source + source(coll? x)
Returns true if x implements Collection
- source + source(counted? coll)
Returns true if coll implements count in constant time
- source + source(dedupe coll)
Returns a lazy sequence removing consecutive duplicates in coll.
- source + sourceDefault map of data reader functions provided by Joker. May be
overridden by binding *data-readers*.
(defmethod multifn dispatch-val & fn-tail)
Creates and installs a new method of multimethod associated with dispatch-value.
- source + sourceReturns true if coll has no items - same as (not (seq coll)).
Please use the idiom (seq x) rather than (not (empty? x))
Returns a vector of the items in coll for which
(pred item) returns true. pred must be free of side-effects.
Takes any nested combination of sequential things (lists, vectors,
etc.) and returns their contents as a single, flat sequence.
(flatten nil) returns an empty sequence.
(fn? x)
Returns true if x is Fn, i.e. is an object created via fn.
- source + sourceReturns a map from distinct items in coll to the number of times
they appear.
Returns the value in a nested associative structure,
where ks is a sequence of keys. Returns nil if the key
is not present, or the not-found value if supplied.
Given a multimethod and a dispatch value, returns the dispatch fn
that would apply to that value, or nil if none apply and no default
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 of the
corresponding elements, in the order they appeared in coll.
(indexed? coll)
Return true if coll implements Indexed, indicating efficient lookup by index
- source + sourceReturns a new coll consisting of to-coll with all of the items of
from-coll conjoined.
(joker-version)
Returns joker version as a printable string.
- source + sourceReturns a lazy sequence of the non-nil results of (f item). Note,
this means false return values will be included. f must be free of
side-effects.
Returns a lazy sequence of the non-nil results of (f index item). Note,
this means false return values will be included. f must be free of
side-effects.
(list? x)
Returns true if x is a List
- source + sourceLoads code from libs, throwing error if cyclic dependency detected,
and ignoring libs already being loaded.
(load-file f)
Loads code from file f. Does not protect against recursion.
- source + source(loaded-libs)
Returns an UNSORTED set of symbols naming the currently loaded libs
- source + source(methods multifn)
Given a multimethod, returns a map of dispatch values -> dispatch fns
- source + source-(name x)
Returns the name String of a string, symbol or keyword.
+Returns the name String of a string, symbol, keyword or any Named object (e.g. File).
sourceReturns a lazy sequence of lists like partition, but may include
partitions with fewer than n items at the end.
Applies f to each value in coll, splitting it each time f returns a
new value. Returns a lazy seq of partitions.
Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y
when there is a conflict
(prefers multifn)
Given a multimethod, returns a map of preferred value -> set of other values
- source + sourceReturn a random element of the (sequential) collection. Will have
the same performance characteristics as nth for the given
collection.
Returns items from coll with random probability of prob (0.0 -
1.0).
(realized? x)
Returns true if a value has been produced for a delay or lazy sequence.
- source + sourceReturns a lazy seq of the intermediate values of the reduction (as
per reduce) of coll by f, starting with init.
(remove-all-methods multifn)
Removes all of the methods of multimethod.
- source + source(remove-method multifn dispatch-val)
Removes the method of multimethod associated with dispatch-value.
- source + sourceResolves namespace-qualified sym per 'resolve'. If initial resolve
fails, attempts to require sym's namespace and retries.
(reversible? coll)
Returns true if coll implements Reversible
- source + sourceRuns the supplied procedure (via reduce), for purposes of side
effects, on successive items in the collection. Returns nil.
(seqable? x)
Return true if the seq function is supported for x
- source + source(sequential? coll)
Returns true if coll implements Sequential
- source + source(shuffle coll)
Return a random permutation of coll
- source + source(slurp f)
Opens file f and reads all its contents, returning a string.
- source + sourceWhen expr is not nil, threads it into the first form (via ->),
and when that result is not nil, through the next etc.
When expr is not nil, threads it into the first form (via ->>),
and when that result is not nil, through the next etc.
Opposite of slurp. Opens file f, writes content, then
closes f.
Repeatedly executes body while test expression is true. Presumes
some side-effect will cause test to become false/nil. Returns nil
++(close f)
Closes f (IOWriter, IOReader, or File) if possible. Otherwise throws an error.
+ +++(pipe)
Pipe creates a synchronous in-memory pipe. It can be used to connect code expecting an IOReader
+ with code expecting an IOWriter.
+ Returns a vector [reader, writer].
Creates the named file with mode 0666 (before umask), truncating it if it already exists.
+ +++(create-temp dir pattern)
Creates a new temporary file in the directory dir, opens the file for reading and writing,
+ and returns the resulting File. The filename is generated by taking pattern and adding a
+ random string to the end. If pattern includes a "*", the random string replaces the last "*".
+ If dir is the empty string, uses the default directory for temporary files (see joker.os/temp-dir).
+ Multiple programs calling joker.os/make-temp-file simultaneously will not choose the same file.
+ The caller can use (name f) to find the pathname of the file.
+ It is the caller's responsibility to remove the file when no longer needed.
Creates a new directory with the specified name and permission bits.
+++(mkdir-temp dir pattern)
Creates a new temporary directory in the directory dir.
+ The directory name is generated by taking pattern and applying a random string to the end.
+ If pattern includes a "*", the random string replaces the last "*".
+ Returns the name of the new directory. If dir is the empty string,
+ uses the default directory for temporary files (see joker.os/temp-dir).
+ Multiple programs calling joker.os/make-temp-dir simultaneously will not choose the same directory.
+ It is the caller's responsibility to remove the directory when no longer needed.
++(temp-dir)
Returns the default directory to use for temporary files.
+ On Unix systems, it returns $TMPDIR if non-empty, else /tmp.
+ On Windows, it uses GetTempPath, returning the first non-empty
+ value from %TMP%, %TEMP%, %USERPROFILE%, or the Windows directory.
+ The directory is neither guaranteed to exist nor have accessible permissions.