@@ -21,8 +21,8 @@ defmodule Dict do
2121 protocol:
2222
2323 iex> dict = dict_impl.new
24- ... > dict = Dict.put(dict, :hello, :world)
25- ... > dict[:hello]
24+ iex > dict = Dict.put(dict, :hello, :world)
25+ iex > dict[:hello]
2626 :world
2727
2828 As well as the `Enumerable` and `Collectable` protocols.
@@ -88,7 +88,7 @@ defmodule Dict do
8888 ## Examples
8989
9090 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
91- ... > Enum.sort(Dict.keys(d))
91+ iex > Enum.sort(Dict.keys(d))
9292 [:a,:b]
9393
9494 """
@@ -104,7 +104,7 @@ defmodule Dict do
104104 ## Examples
105105
106106 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
107- ... > Enum.sort(Dict.values(d))
107+ iex > Enum.sort(Dict.values(d))
108108 [1,2]
109109
110110 """
@@ -119,7 +119,7 @@ defmodule Dict do
119119 ## Examples
120120
121121 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
122- ... > Dict.size(d)
122+ iex > Dict.size(d)
123123 2
124124
125125 """
@@ -205,8 +205,8 @@ defmodule Dict do
205205 ## Examples
206206
207207 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
208- ... > d = Dict.put(d, :a, 3)
209- ... > Dict.get(d, :a)
208+ iex > d = Dict.put(d, :a, 3)
209+ iex > Dict.get(d, :a)
210210 3
211211
212212 """
@@ -221,8 +221,8 @@ defmodule Dict do
221221 ## Examples
222222
223223 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
224- ... > d = Dict.put_new(d, :a, 3)
225- ... > Dict.get(d, :a)
224+ iex > d = Dict.put_new(d, :a, 3)
225+ iex > Dict.get(d, :a)
226226 1
227227
228228 """
@@ -238,12 +238,12 @@ defmodule Dict do
238238 ## Examples
239239
240240 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
241- ... > d = Dict.delete(d, :a)
242- ... > Dict.get(d, :a)
241+ iex > d = Dict.delete(d, :a)
242+ iex > Dict.get(d, :a)
243243 nil
244244
245245 iex> d = Enum.into([b: 2], dict_impl.new)
246- ... > Dict.delete(d, :a) == d
246+ iex > Dict.delete(d, :a) == d
247247 true
248248
249249 """
@@ -266,17 +266,17 @@ defmodule Dict do
266266 ## Examples
267267
268268 iex> d1 = Enum.into([a: 1, b: 2], dict_impl.new)
269- ... > d2 = Enum.into([a: 3, d: 4], dict_impl.new)
270- ... > d = Dict.merge(d1, d2)
271- ... > [a: Dict.get(d, :a), b: Dict.get(d, :b), d: Dict.get(d, :d)]
269+ iex > d2 = Enum.into([a: 3, d: 4], dict_impl.new)
270+ iex > d = Dict.merge(d1, d2)
271+ iex > [a: Dict.get(d, :a), b: Dict.get(d, :b), d: Dict.get(d, :d)]
272272 [a: 3, b: 2, d: 4]
273273
274274 iex> d1 = Enum.into([a: 1, b: 2], dict_impl.new)
275- ... > d2 = Enum.into([a: 3, d: 4], dict_impl.new)
276- ... > d = Dict.merge(d1, d2, fn(_k, v1, v2) ->
275+ iex > d2 = Enum.into([a: 3, d: 4], dict_impl.new)
276+ iex > d = Dict.merge(d1, d2, fn(_k, v1, v2) ->
277277 ...> v1 + v2
278278 ...> end)
279- ... > [a: Dict.get(d, :a), b: Dict.get(d, :b), d: Dict.get(d, :d)]
279+ iex > [a: Dict.get(d, :a), b: Dict.get(d, :b), d: Dict.get(d, :d)]
280280 [a: 4, b: 2, d: 4]
281281
282282 """
@@ -301,18 +301,18 @@ defmodule Dict do
301301 ## Examples
302302
303303 iex> dict = Enum.into([a: 1], dict_impl.new)
304- ... > {v, d} = Dict.pop dict, :a
305- ... > {v, Enum.sort(d)}
304+ iex > {v, d} = Dict.pop dict, :a
305+ iex > {v, Enum.sort(d)}
306306 {1,[]}
307307
308308 iex> dict = Enum.into([a: 1], dict_impl.new)
309- ... > {v, d} = Dict.pop dict, :b
310- ... > {v, Enum.sort(d)}
309+ iex > {v, d} = Dict.pop dict, :b
310+ iex > {v, Enum.sort(d)}
311311 {nil,[a: 1]}
312312
313313 iex> dict = Enum.into([a: 1], dict_impl.new)
314- ... > {v, d} = Dict.pop dict, :b, 3
315- ... > {v, Enum.sort(d)}
314+ iex > {v, d} = Dict.pop dict, :b, 3
315+ iex > {v, Enum.sort(d)}
316316 {3,[a: 1]}
317317
318318 """
@@ -328,8 +328,8 @@ defmodule Dict do
328328 ## Examples
329329
330330 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
331- ... > d = Dict.update!(d, :a, fn(val) -> -val end)
332- ... > Dict.get(d, :a)
331+ iex > d = Dict.update!(d, :a, fn(val) -> -val end)
332+ iex > Dict.get(d, :a)
333333 -1
334334
335335 """
@@ -346,8 +346,8 @@ defmodule Dict do
346346 ## Examples
347347
348348 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
349- ... > d = Dict.update(d, :c, 3, fn(val) -> -val end)
350- ... > Dict.get(d, :c)
349+ iex > d = Dict.update(d, :c, 3, fn(val) -> -val end)
350+ iex > Dict.get(d, :c)
351351 3
352352
353353 """
@@ -366,18 +366,18 @@ defmodule Dict do
366366 ## Examples
367367
368368 iex> d = Enum.into([a: 1, b: 2, c: 3, d: 4], dict_impl.new)
369- ... > { d1, d2 } = Dict.split(d, [:a, :c, :e])
370- ... > { Dict.to_list(d1) |> Enum.sort, Dict.to_list(d2) |> Enum.sort }
369+ iex > { d1, d2 } = Dict.split(d, [:a, :c, :e])
370+ iex > { Dict.to_list(d1) |> Enum.sort, Dict.to_list(d2) |> Enum.sort }
371371 { [a: 1, c: 3], [b: 2, d: 4] }
372372
373373 iex> d = Enum.into([], dict_impl.new)
374- ... > { d1, d2 } = Dict.split(d, [:a, :c])
375- ... > { Dict.to_list(d1), Dict.to_list(d2) }
374+ iex > { d1, d2 } = Dict.split(d, [:a, :c])
375+ iex > { Dict.to_list(d1), Dict.to_list(d2) }
376376 { [], [] }
377377
378378 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
379- ... > { d1, d2 } = Dict.split(d, [:a, :b, :c])
380- ... > { Dict.to_list(d1) |> Enum.sort, Dict.to_list(d2) }
379+ iex > { d1, d2 } = Dict.split(d, [:a, :b, :c])
380+ iex > { Dict.to_list(d1) |> Enum.sort, Dict.to_list(d2) }
381381 { [a: 1, b: 2], [] }
382382
383383 """
@@ -393,13 +393,13 @@ defmodule Dict do
393393 ## Examples
394394
395395 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
396- ... > d = Dict.drop(d, [:a, :c, :d])
397- ... > Dict.to_list(d)
396+ iex > d = Dict.drop(d, [:a, :c, :d])
397+ iex > Dict.to_list(d)
398398 [b: 2]
399399
400400 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
401- ... > d = Dict.drop(d, [:c, :d])
402- ... > Dict.to_list(d) |> Enum.sort
401+ iex > d = Dict.drop(d, [:c, :d])
402+ iex > Dict.to_list(d) |> Enum.sort
403403 [a: 1, b: 2]
404404
405405 """
@@ -416,13 +416,11 @@ defmodule Dict do
416416 ## Examples
417417
418418 iex> d = Enum.into([a: 1, b: 2], dict_impl.new)
419- ...>
420- ...> d = Dict.take(d, [:a, :c, :d])
421- ...> Dict.to_list(d)
419+ iex> d = Dict.take(d, [:a, :c, :d])
420+ iex> Dict.to_list(d)
422421 [a: 1]
423- ...>
424- ...> d = Dict.take(d, [:c, :d])
425- ...> Dict.to_list(d)
422+ iex> d = Dict.take(d, [:c, :d])
423+ iex> Dict.to_list(d)
426424 []
427425
428426 """
@@ -447,13 +445,13 @@ defmodule Dict do
447445 ## Examples
448446
449447 iex> a = Enum.into([a: 2, b: 3, f: 5, c: 123], dict_impl.new)
450- ... > b = [a: 2, b: 3, f: 5, c: 123]
451- ... > Dict.equal?(a, b)
448+ iex > b = [a: 2, b: 3, f: 5, c: 123]
449+ iex > Dict.equal?(a, b)
452450 true
453451
454452 iex> a = Enum.into([a: 2, b: 3, f: 5, c: 123], dict_impl.new)
455- ... > b = []
456- ... > Dict.equal?(a, b)
453+ iex > b = []
454+ iex > Dict.equal?(a, b)
457455 false
458456
459457 """
0 commit comments