more cleanups & docs
This commit is contained in:
@@ -8,15 +8,13 @@
|
||||
(defn make-thought
|
||||
"Helper function to make thought object.
|
||||
You may want `register-thought!` instead."
|
||||
[operator & {:keys [data ext-contract ext-stages]
|
||||
:or {data {} ext-contract {}
|
||||
[operator & {:keys [data ext-stages]
|
||||
:or {data {}
|
||||
ext-stages [[:PRE-EXECUTE] [:EXECUTE] [:POST-EXECUTE]]}}]
|
||||
(hash-map :operator operator
|
||||
:data data
|
||||
:ext-contract ext-contract
|
||||
:ext-stages ext-stages
|
||||
:return []
|
||||
:transient nil))
|
||||
:return []))
|
||||
|
||||
(defn register-thought!
|
||||
"Create a thought and register it in the state.
|
||||
|
Reference in New Issue
Block a user