Skip to content

Commit

Permalink
Add :retract-fn to accumulator record (previously an extra key not in…
Browse files Browse the repository at this point in the history
… the basis) (#410)
  • Loading branch information
sunilgunisetty authored and WilliamParker committed Nov 19, 2018
1 parent 64ca1ae commit 06e8bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Expand Up @@ -20,3 +20,4 @@ Community
[@dgoeke]: https://github.com/dgoeke
[@sparkofreason]: https://github.com/sparkofreason
[@bfontaine]: https://github.com/bfontaine
[@sunilgunisetty]: https://github.com/sunilgunisetty
2 changes: 1 addition & 1 deletion src/main/clojure/clara/rules/engine.cljc
Expand Up @@ -14,7 +14,7 @@
;; The accumulator is a Rete extension to run an accumulation (such as sum, average, or similar operation)
;; over a collection of values passing through the Rete network. This object defines the behavior
;; of an accumulator. See the AccumulateNode for the actual node implementation in the network.
(defrecord Accumulator [initial-value reduce-fn combine-fn convert-return-fn])
(defrecord Accumulator [initial-value retract-fn reduce-fn combine-fn convert-return-fn])

;; A Rete-style token, which contains two items:
;; * matches, a vector of [fact, node-id] tuples for the facts and corresponding nodes they matched.
Expand Down

0 comments on commit 06e8bcb

Please sign in to comment.