From 46496626ea2425004e884426eba29f24f09aee17 Mon Sep 17 00:00:00 2001 From: brannx Date: Thu, 15 Mar 2018 15:32:25 +0300 Subject: [PATCH] Update 05_sets.clj --- src/koans/05_sets.clj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/koans/05_sets.clj b/src/koans/05_sets.clj index a6e631f..05f73a7 100644 --- a/src/koans/05_sets.clj +++ b/src/koans/05_sets.clj @@ -3,20 +3,20 @@ [clojure.set :as set])) (meditations - "You can create a set by converting another collection" + "Создаём множество из другой коллекции" (= #{3} (set __)) - "Counting them is like counting other collections" + "Считаем как обычно" (= __ (count #{1 2 3})) - "Remember that a set is a *mathematical* set" + "Множество — оно математическое" (= __ (set '(1 1 2 2 3 3 4 4 5 5))) - "You can ask clojure for the union of two sets" + "Объединение" (= __ (set/union #{1 2 3 4} #{2 3 5})) - "And also the intersection" + "Пересечение" (= __ (set/intersection #{1 2 3 4} #{2 3 5})) - "But don't forget about the difference" + "Разность" (= __ (set/difference #{1 2 3 4 5} #{2 3 5})))