File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
IdSet()
6
6
7
7
IdSet{T}() constructs a set (see [`Set`](@ref)) using
8
- `===` as equality with values of type `V `.
8
+ `===` as equality with values of type `T `.
9
9
10
- In the example below, the values are all `isequal` so they get overwritten.
11
- The `IdSet` compares by `===` so preserves the 3 different keys.
12
-
13
- Examples
14
- ≡≡≡≡≡≡≡≡
10
+ In the example below, the values are all `isequal` so they get overwritten in the ordinary `Set`.
11
+ The `IdSet` compares by `===` and so preserves the 3 different values.
15
12
13
+ # Examples
14
+ ```jldoctest; filter = r"\\ n\\ s*(1|1\\ .0|true)"
16
15
julia> Set(Any[true, 1, 1.0])
17
16
Set{Any} with 1 element:
18
17
1.0
@@ -22,6 +21,7 @@ IdSet{Any} with 3 elements:
22
21
1.0
23
22
1
24
23
true
24
+ ```
25
25
"""
26
26
mutable struct IdSet{K} <: AbstractSet{K}
27
27
list:: Memory{Any}
You can’t perform that action at this time.
0 commit comments