From 5674c49c3aed00729145cd8c8e1ce174ec55fec9 Mon Sep 17 00:00:00 2001 From: Matthew Davidson Date: Wed, 4 Jan 2023 16:51:26 +0100 Subject: [PATCH] 27 --- src/koans/27_multimethods.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/koans/27_multimethods.clj b/src/koans/27_multimethods.clj index 22152fb..120152e 100644 --- a/src/koans/27_multimethods.clj +++ b/src/koans/27_multimethods.clj @@ -26,19 +26,19 @@ (meditations "A multimethod takes one or more arguments to dispatch on" - (= __ + (= "Hello, World!" (multimethod-without-args :first)) "Though it can be ignored and represented by _ in defmethods" - (= __ + (= "Hello there" (multimethod-without-args :second)) "Alternatively, we can use the arguments in defmethods" - (= __ + (= 1 (multimethod-with-args :path-one {:first-opt 1 :second-opt 2})) "This allows us to do something different in each method implementation" - (= __ + (= 6 (multimethod-with-args :path-two {:first-opt 1 :second-opt [0 1 2]})))