Skip to content

Commit 67ce8b5

Browse files
committed
Add ∅ (empty set) as synonym for Set{Any}({})
1 parent fae924a commit 67ce8b5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

base/exports.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export
108108
WeakRef,
109109
Woodbury,
110110
Zip,
111+
∅,
111112

112113
# Ccall types
113114
Cchar,

base/set.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type Set{T}
55
Set(itr) = union!(new(Dict{T,Nothing}()), itr)
66
end
77
Set() = Set{Any}()
8+
= Set()
89
Set(itr) = Set{eltype(itr)}(itr)
910

1011
show(io::IO, s::Set) = (show(io, typeof(s)); show_comma_array(io, s,"({","})"))

0 commit comments

Comments
 (0)