Skip to content

Commit

Permalink
chore: deprecate HashSet.insert' (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em authored Sep 18, 2024
1 parent 46fed98 commit 2ce0037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Batteries/Lean/HashSet.lean
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ instance : BEq (HashSet α) where
`O(1)` amortized. Similar to `insert`, but also returns a Boolean flag indicating whether an
existing entry has been replaced with `a => b`.
-/
@[inline]
@[inline, deprecated containsThenInsert (since := "2024-09-17")]
def insert' (s : HashSet α) (a : α) : HashSet α × Bool :=
let oldSize := s.size
let s := s.insert a
Expand Down

0 comments on commit 2ce0037

Please sign in to comment.