Skip to content

Commit

Permalink
Add missing varcmp
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromxavier committed Aug 26, 2022
1 parent 1cb4f32 commit 27d7bee
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/library/tools.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
@doc raw"""
""" function _getdefault end

function _getdefault(value::Any, default::Any)
isnothing(value) ? default : value
end

@doc raw"""
""" function isapproxdict end

Expand Down Expand Up @@ -156,7 +149,7 @@ end

function _build_mapping(variable_set::Set{V}) where {V}
variable_map = Dict{V,Int}(
v => k for (k, v) in enumerate(sort(collect(variable_set)))
v => k for (k, v) in enumerate(sort(collect(variable_set); lt=))
)
variable_inv = Dict{Int,V}(v => k for (k, v) in variable_map)

Expand Down

0 comments on commit 27d7bee

Please sign in to comment.