Bläddra i källkod

Add more code examples

Lily Carpenter 10 år sedan
förälder
incheckning
ac788211aa
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      presentation.tex

+ 4 - 0
presentation.tex

@@ -254,6 +254,8 @@
254 254
     ;=> {:key1 2}
255 255
     (assoc {} :key1 1)
256 256
     ;=> {:key1 1}
257
+    (dissoc {:key1 1} :key1)
258
+    ;=> {}
257 259
   \end{minted}
258 260
 \end{frame}
259 261
 
@@ -276,6 +278,8 @@
276 278
     ;=> #{1 2 3}
277 279
     (conj #{1 2 3} 4)
278 280
     ;=> #{1 2 3 4}
281
+    (disj #{1 2 3} 3)
282
+    ;=> #{1 2}
279 283
   \end{minted}
280 284
 \end{frame}
281 285