clojure-uebungen/Assignment_006/solution
Thomas Smits 04dda27e57 Update of exercises 2024-03-11 10:41:23 +01:00
..
readme.md Update of exercises 2024-03-11 10:41:23 +01:00

readme.md

Lösung: Multi-Arity-Funktion

(defn my-average
  ([a b]         (/ (+ a b) 2))
  ([a b c d]     (/ (+ a b c d) 4))
  ([a b c d e f] (/ (+ a b c d e f) 6)))