(add-events! src events)
Add all the given events to src
.
Add all the given events to `src`.
(event time value)
Construct a Event
record.
time
: access via active.events.core/event-time
value
: access via active.events.core/event-value
Construct a `Event` record. `time`: access via [[active.events.core/event-time]] `value`: access via [[active.events.core/event-value]]
record-type-descriptor for type Event
record-type-descriptor for type Event
(event-time Event)
Lens for the time
field from a Event
record. See active.events.core/event
.
Lens for the `time` field from a [[Event]] record. See [[active.events.core/event]].
(event-value Event)
Lens for the value
field from a Event
record. See active.events.core/event
.
Lens for the `value` field from a [[Event]] record. See [[active.events.core/event]].
(event? thing)
Is object a Event
record? See active.events.core/event
.
Is object a `Event` record? See [[active.events.core/event]].
(-add-events! this events)
Add a sequence of events to this event source.
Add a sequence of events to this event source.
(-get-events this)
Get a reducible collection (IReduceInit) of all events of this event source.
Get a reducible collection (IReduceInit) of all events of this event source.
(filtered-event-source src pred)
Returns a new event source, that contains only the events from src
that match pred
. The predicate must also hold for events added
it.
Returns a new event source, that contains only the events from `src` that match `pred`. The predicate must also hold for events added it.
(new-memory-event-source)
Returns a new event source that holds events in an atom.
Returns a new event source that holds events in an atom.
(reduce-events src f)
(reduce-events src f init)
Retrieve all events from src
and reduce them into a different form.
Retrieve all events from `src` and reduce them into a different form.
(static-event-source events)
Returns an event source that contains just the given events. Adding events to it throws an exception.
Returns an event source that contains just the given events. Adding events to it throws an exception.
(xmap-event-value src in out)
Returns a new event source that maps in
over the event before
adding them to src
and maps out
over the events retrieved from
src
.
Returns a new event source that maps `in` over the event before adding them to `src` and maps `out` over the events retrieved from `src`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close