diff --git a/.gitignore b/.gitignore index 69ab9db..518ddb7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ /checkouts /.lein-deps-sum /.lein-plugins +/.idea +/.clj-kondo +/.lsp \ No newline at end of file diff --git a/src/training_day.clj b/src/training_day.clj index f5ac2e6..1bcea2e 100644 --- a/src/training_day.clj +++ b/src/training_day.clj @@ -1,11 +1,14 @@ (ns training-day) -(def answer ":(") +(def answer 42) (def hai "O HAI!") (defn square [x] - ":(") + (* x x)) (defn average [a b] - ":(") + (/ (+ a b) 2)) + +(defn srednee [kol] + (/ (reduce + kol) (count kol)))