From b27012e574f384d821debbd56d11a85a51f29eaf Mon Sep 17 00:00:00 2001 From: Alex Gorelov Date: Thu, 15 Mar 2018 16:35:57 +0300 Subject: [PATCH 1/2] Update 08_conditionals.clj --- src/koans/08_conditionals.clj | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/koans/08_conditionals.clj b/src/koans/08_conditionals.clj index 87b9fdf..449e3ba 100644 --- a/src/koans/08_conditionals.clj +++ b/src/koans/08_conditionals.clj @@ -9,39 +9,39 @@ "is that even exercise?")) (meditations - "You will face many decisions" + "Нужно принимать решения" (= __ (if (false? (= 4 5)) :a :b)) - "Some of them leave you no alternative" + "Иногда альтернативы нет" (= __ (if (> 4 3) [])) - "And in such a situation you may have nothing" + "И вы ничего не получаете" (= __ (if (nil? 0) [:a :b :c])) - "In others your alternative may be interesting" + "Иногда выбор есть" (= :glory (if (not (empty? ())) :doom __)) - "You may have a multitude of possible paths" + "И вариантов много" (let [x 5] (= :your-road (cond (= x __) :road-not-taken (= x __) :another-road-not-taken :else __))) - "Or your fate may be sealed" + "Получаем doom" (= 'doom (if-not (zero? __) 'doom 'more-doom)) - "In case of emergency, go fast" + "Выбирать можно и так" (= "pretty fast" (explain-exercise-velocity __)) - "But admit it when you don't know what to do" + "Можно задавать ответ по-умолчанию" (= __ (explain-exercise-velocity :watching-tv))) From ca9acec8a2fe9ca7cdb62b533e4858af593df025 Mon Sep 17 00:00:00 2001 From: Alex Gorelov Date: Thu, 15 Mar 2018 16:38:20 +0300 Subject: [PATCH 2/2] Update 03_lists.clj --- src/koans/03_lists.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/koans/03_lists.clj b/src/koans/03_lists.clj index fccf041..ea31b79 100644 --- a/src/koans/03_lists.clj +++ b/src/koans/03_lists.clj @@ -17,7 +17,7 @@ "Ну, если они есть…" (= __ (count '())) - "Когда ни чего кроме списка не осталось, что получаем?" + "Когда ничего кроме списка не осталось, что получаем?" (= __ (rest '(100))) "Создаём новый список добавляя элемент в начало списка"