Thanks - but that has the same result.
julia> mutable struct CustomSet{T}
elements:: Vector{T}
CustomSet(e) = new{T}(sort(e))
end
julia> c = CustomSet([1,2,4,3])
CustomSet{Int64}([1, 2, 4, 3])
Thanks - but that has the same result.
julia> mutable struct CustomSet{T}
elements:: Vector{T}
CustomSet(e) = new{T}(sort(e))
end
julia> c = CustomSet([1,2,4,3])
CustomSet{Int64}([1, 2, 4, 3])