From 930693ab7b35d01cded8f486754a7a9a7630b168 Mon Sep 17 00:00:00 2001 From: Kenneth Kostresevic Date: Thu, 16 Dec 2021 16:07:09 +0100 Subject: [PATCH] Join last two strings --- src/koans/10_runtime_polymorphism.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/koans/10_runtime_polymorphism.clj b/src/koans/10_runtime_polymorphism.clj index 256daeb..68dd216 100644 --- a/src/koans/10_runtime_polymorphism.clj +++ b/src/koans/10_runtime_polymorphism.clj @@ -10,8 +10,8 @@ "!"))) (defmulti diet (fn [x] (:eater x))) -(defmethod diet :herbivore [a] (str (:name a), " eats ", "veggies.")) -(defmethod diet :carnivore [a] (str (:name a), " eats ", "animals.")) +(defmethod diet :herbivore [a] (str (:name a) " eats veggies.")) +(defmethod diet :carnivore [a] (str (:name a) " eats animals.")) (defmethod diet :default [a] (str "I don't know what ", (:name a), " eats.")) (meditations