Zulip Chat Archive

Stream: lean4

Topic: Std.HashSet.merge missing


Adam Topaz (Sep 03 2024 at 16:08):

I was using Lean.HashSet.merge in one of my projects, and after updating today, I got a deprecation warning that Lean.HashSet has been deprecated and that I should use Std.HashSet instead. However, it seems that functions like docs#Lean.HashSet.merge have not been moved over. Is this intentional?

Henrik Böving (Sep 03 2024 at 16:20):

CC @Markus Himmel

Markus Himmel (Sep 03 2024 at 16:26):

You should be able to use docs#Std.HashSet.insertMany

Adam Topaz (Sep 03 2024 at 16:27):

Well, I ended up just using a fold, so it's not a big deal for my purposes. I was just wondering if this was an oversight.

Adam Topaz (Sep 03 2024 at 16:29):

in principle one could also introduce an instance of docs#Union

Kim Morrison (Sep 03 2024 at 23:21):

There's also HashSet.union.


Last updated: May 02 2025 at 03:31 UTC