We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a890e79 commit 47b863dCopy full SHA for 47b863d
src/structured_data.clj
@@ -33,4 +33,7 @@
33
(defn books->author-names [books]
34
:-)
35
36
+(defn toggle [a-set elem]
37
+ :-)
38
+
39
; %________%
test/structured_data_test.clj
@@ -23,6 +23,10 @@
23
(second-elements [[1 2] [2 3] [3 4]]) => [2 3 4]
24
(second-elements [[1 2 3 4] [1] ["a" "s" "d" "f"]]) => [2 nil "s"])
25
26
+(facts "toggle"
27
+ (toggle #{:a :b :c} :d) => #{:a :b :c :d}
28
+ (toggle #{:a :b :c} :a) => #{:b :c})
29
30
(def china {:name "China Miéville", :birth-year 1972})
31
32
(def octavia {:name "Octavia E. Butler"
0 commit comments