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.
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.
Convenience function for getting the first value.
Convenience function for getting the _first_ value.
Convenience function for getting the last value.
Convenience function for getting the _last_ value.
(reset)
Reset Taplica to its initial state. No taps, no data.
Reset Taplica to its initial state. No taps, no data.
(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).
(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).
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close