Liking cljdoc? Tell your friends :D

taplica.core

Extremely simple wrapper for tap> handling. The tap functions (tap! and tap>>) do the tap registration (add-tap) if needed. The tapped values are stored into an atom. Note that while tap! and tap>> are wrappers for tap>, the regular tap> calls do not update the atom.

Extremely simple wrapper for `tap>` handling. The tap functions ([[tap!]] and [[tap>>]])
do the tap registration (`add-tap`) if needed. The tapped values are stored into an
atom. Note that while [[tap!]] and [[tap>>]] are wrappers for `tap>`, the regular `tap>`
calls do not update the atom.
raw docstring

*taplica*clj

Taplica atom. Typically, there is no need to access the atom directly, but it is exposed just in case.

Taplica atom. Typically, there is no need to access the atom
directly, but it is exposed just in case.
sourceraw docstring

fvalueclj

Convenience function for getting the first value.

Convenience function for getting the _first_ value.
sourceraw docstring

lvalueclj

Convenience function for getting the last value.

Convenience function for getting the _last_ value.
sourceraw docstring

pauseclj

(pause)

Removes tap and does not add it on subsequent tap! or tap>> calls.

Removes tap and does not add it on subsequent [[tap!]] or [[tap>>]] calls.
sourceraw docstring

resetclj

(reset)

Reset Taplica to its initial state. No taps, no data.

Reset Taplica to its initial state. No taps, no data.
sourceraw docstring

resumeclj

(resume)

Clears pause or stop state.

Clears pause or stop state.
sourceraw docstring

stopclj

(stop)

Removes tap and throws on subsequent tap! or tap>> calls. This is sometimes useful to make sure that no taps are forgotten in the code.

Removes tap and throws on subsequent [[tap!]] or [[tap>>]] calls. This is sometimes
useful to make sure that no taps are forgotten in the code.
sourceraw docstring

tap!clj

(tap! & args)

Replaces the currently tapped value for the value path. Last arg is the value and the preceding items are considered its path. If there is only one (value) argument, it is stored into an empty path []. Returns tapped value (or throws if stopped).

Replaces the currently tapped value for the value path. Last arg is the value and the
preceding items are considered its path. If there is only one (value) argument, it is
stored into an empty path `[]`. Returns tapped value (or throws if stopped).
sourceraw docstring

tap>>clj

(tap>> & args)

Adds the tapped value to the earlier taps for the same path. Last arg is the value and the preceding items are considered its path. If there is only one (value) argument, it is stored into empty path []. Returns tapped value (or throws if stopped).

Adds the tapped value to the earlier taps for the same path. Last arg is the value and
the preceding items are considered its path. If there is only one (value) argument, it
is stored into empty path `[]`. Returns tapped value (or throws if stopped).
sourceraw docstring

valueclj

(value & path)

Tapped value list stored in path. With no arguments retuns the values in an empty path.

Tapped value list stored in `path`. With no arguments retuns the values in an empty
path.
sourceraw docstring

valuesclj

(values)

Full Taplica atom contents.

Full Taplica atom contents.
sourceraw docstring

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

× close