clojure-uebungen/Assignment_006/solution/readme.md

10 lines
175 B
Markdown

# Lösung: Multi-Arity-Funktion
```clojure
(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)))
```