#282
runtime-polymorphism-2
 

Difficulty:Basic
Topics:polymorphism


Or with many arguments
test not run
(let [hello (fn
                  ([] "Hello World!")
                  ([a] (str "Hello, you silly " a "."))
                  ([a & more] (str "Hello to this group: "
                                   (apply str
                                          (interpose ", " (concat (list a) more)))
                                   "!")))]
      (= __
         (hello "Peter" "Paul" "Mary")))


Code which fills in the blank: