Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
darkleaf committed Sep 18, 2019
1 parent f16d2ff commit 38cecf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ Like multimethods but multidecorators.
(derive ::b ::a)
(derive ::c ::a)

(defn dispatch [obj]
obj)

(defn initial [obj]
[])

(defonce func (md/multi identity #'initial))
(defonce func (md/multi #'dispatch #'initial))

(md/decorate func ::a
(fn a-decorator [super obj]
Expand Down

0 comments on commit 38cecf5

Please sign in to comment.