We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92c7f8b commit 0cf4cd3Copy full SHA for 0cf4cd3
1 file changed
src/koans/09_runtime_polymorphism.clj
@@ -26,14 +26,14 @@
26
(= "Bambi eats veggies."
27
(diet {:species "deer" :name "Bambi" :age 1 :eater :herbivore}))
28
29
- "Different methods are used depending on the dispatch function result"
30
- (= "Simba eats animals."
31
- (diet {:species "lion" :name "Simba" :age 1 :eater :carnivore}))
32
-
33
"Animals have different names"
34
(= "Thumper eats veggies."
35
(diet {:species "rabbit" :name "Thumper" :age 1 :eater :herbivore}))
36
+ "Different methods are used depending on the dispatch function result"
+ (= "Simba eats animals."
+ (diet {:species "lion" :name "Simba" :age 1 :eater :carnivore}))
+
37
"You may use a default method when no others match"
38
(= "I don't know what Rich Hickey eats."
39
(diet {:name "Rich Hickey"})))
0 commit comments