Join last two strings
This commit is contained in:
parent
72ee00960c
commit
930693ab7b
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue