lean4-htt/tests/lean/1206.lean
Kim Morrison 74ffa1e413
chore: remove the old Lean.Data.HashMap implementation (#7519)
This PR removes `Lean.Data.HashMap` and `HashSet`. These have been
deprecated for 6 months, replaced by `Std.Data.HashMap` and `HashSet`.
2025-03-20 23:49:55 +00:00

12 lines
254 B
Text

import Std.Data.HashSet
set_option linter.unusedVariables true
open Lean
def boo : Id (Std.HashSet Nat) := do
let mut vs : Std.HashSet Nat := ∅
for i in List.range 10 do
/- unused variable `vs` -/
(_, vs) := (i, vs.insert i)
return vs