Liking cljdoc? Tell your friends :D

precept.listeners


all-listenersclj/s

(all-listeners session)

Returns all listener instances or empty list if none.

Returns all listener instances or empty list if none.
sourceraw docstring

append-traceclj/s

(append-trace listener event)

Appends a trace event and returns a new listener with it.

Appends a trace event and returns a new listener with it.
sourceraw docstring

check-retract-facts-logical-failureclj/s

(check-retract-facts-logical-failure facts)
source

create-devtools-listenersclj/s

(create-devtools-listeners ch *event-coords initial-trace)

Returns Clara DelegatingListener that sends listener events through a PersistentFactListener and PersistentSessionEventMessanger constructed with the supplied arguments.

  • initial-trace - vector or nil. Passed to fact listener. Defaults to [].
  • ``ch- core.async channel that PersistentSessionEventMessenger will put events to *event-coords - atom with keys :event-number, :state-number, :state-id. :event-number updated within SessionEventMessenger methods.
Returns Clara DelegatingListener that sends listener events through a PersistentFactListener
and PersistentSessionEventMessanger constructed with the supplied arguments.
- `initial-trace` - vector or nil. Passed to fact listener. Defaults to [].
- ``ch` - core.async channel that PersistentSessionEventMessenger will put events to
` `*event-coords` - atom with keys `:event-number`, `:state-number`, `:state-id`.
                   `:event-number` updated within SessionEventMessenger methods.
sourceraw docstring

create-fact-listenerclj/s

(create-fact-listener)
(create-fact-listener initial-trace)
source

deconstruct-node-tokenclj/s

(deconstruct-node-token node token)
source

diff-opsclj/s

(diff-ops ops)

Returns net result of session changes in order to eliminate ordinal significance of add/remove mutations to view-model

Returns net result of session changes in order to eliminate ordinal significance of add/remove
mutations to view-model
sourceraw docstring

explain-insert-factsclj/s

(explain-insert-facts node token facts)
source

fact-tracesclj/s

(fact-traces session)

Returns [[]...]. List of fact events for each fact listener in the session.

Returns [[]...]. List of fact events for each fact listener in the session.
sourceraw docstring

get-fact-match-or-matchesclj/s

(get-fact-match-or-matches matches)
source

handle-event!clj/s

(handle-event! ch *event-coords type node token facts)
source

insertionsclj/s

(insertions trace-by-type)
source

list-factsclj/s

(list-facts xs)
source

opsclj/s

(ops session)

Returns :added, :removed results. Assumes a single fact listener in the vector of session's :listeners that may be a child of a PersistentDelegatingListener.

Returns :added, :removed results. Assumes a single fact listener in the vector of
session's `:listeners` that may be a child of a PersistentDelegatingListener.
sourceraw docstring

PersistentFactListenercljs

source

PersistentSessionEventMessengercljs

source

replace-listenerclj/s

(replace-listener session)
(replace-listener session listener)

Removes and adds listener(s) from session. When called with session only adds PersistentFactListener with initial state of [].

Removes and adds listener(s) from session.
When called with `session` only adds PersistentFactListener with initial state of [].
sourceraw docstring

retractionsclj/s

(retractions trace-by-type)
source

split-matches-and-tokensclj/s

(split-matches-and-tokens matches)

Splits matches into vector of facts, tokens

Splits matches into vector of facts, tokens
sourceraw docstring

split-opsclj/s

(split-ops trace)

Takes trace returned by Clara's get-trace. Returns m of :added, :removed

Takes trace returned by Clara's get-trace. Returns m of :added, :removed
sourceraw docstring

to-transient-fact-listenerclj/s

(to-transient-fact-listener listener)
source

to-transient-session-event-messengerclj/s

(to-transient-session-event-messenger listener)
source

trace-by-typeclj/s

(trace-by-type trace)
source

TransientFactListenercljs

source

TransientSessionEventMessengercljs

source

vec-opsclj/s

(vec-ops session)

Takes a session with a FactListener and returns the result of the trace as {:added [vector tuples] :removed [vector tuples]}

Takes a session with a FactListener and returns the result of the trace
as {:added [vector tuples] :removed [vector tuples]}
sourceraw docstring

vectorize-traceclj/s

(vectorize-trace trace)
source

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

× close