From 38cecf54d71d3ba2204b7cf339c0b525cdd85b07 Mon Sep 17 00:00:00 2001 From: Mikhail Kuzmin Date: Wed, 18 Sep 2019 20:25:30 +0400 Subject: [PATCH] fix example --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 47c855e..48b9750 100644 --- a/README.md +++ b/README.md @@ -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]