Manipulates transactions. Transactions are represented as a sequence of micro-operations (mops for short).
Manipulates transactions. Transactions are represented as a sequence of micro-operations (mops for short).
(ext-reads txn)
Given a transaction, returns a map of keys to values for its external reads: values that transaction observed which it did not write itself.
Given a transaction, returns a map of keys to values for its external reads: values that transaction observed which it did not write itself.
(ext-writes txn)
Given a transaction, returns the map of keys to values for its external writes: final values written by the txn.
Given a transaction, returns the map of keys to values for its external writes: final values written by the txn.
(reduce-mops f init-state history)
Takes a history of operations, where each operation op has a :value which is a transaction made up of [f k v] micro-ops. Runs a reduction over every micro-op, where the reduction function is of the form (f state op [f k v]). Saves you having to do endless nested reduces.
Takes a history of operations, where each operation op has a :value which is a transaction made up of [f k v] micro-ops. Runs a reduction over every micro-op, where the reduction function is of the form (f state op [f k v]). Saves you having to do endless nested reduces.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close