Skip to content

Commit

Permalink
Remove duplicated method
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Jan 13, 2025
1 parent c009f02 commit 336a7a4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/BijectiveDicts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ function dict_adjoint(d::D) where {D<:AbstractDict}
dict_adjoint(D)(Iterators.map(reverse, d))
end

BijectiveDict(f::F) where {K,V,F<:AbstractDict{K,V}} = BijectiveDict(f, dict_adjoint(f))

Base.copy(bd::BijectiveDict) = BijectiveDict(copy(bd.f), copy(bd.f⁻¹))
function Base.empty(bd::BijectiveDict, ::Type{K}, ::Type{V}) where {K,V}
BijectiveDict(empty(bd.f, K, V), empty(bd.f⁻¹, V, K))
Expand Down

0 comments on commit 336a7a4

Please sign in to comment.