On Sun, Dec 27, 2020 at 7:51 PM Jan Mercl <0xj...@gmail.com> wrote: > On Sun, Dec 27, 2020 at 3:51 PM Jesper Louis Andersen > <jesper.louis.ander...@gmail.com> wrote: > > > I need a heap over any type which can be ordered, and its needs to drag > around any type of satellite data. > > I'm confused. Isn't that what > https://golang.org/pkg/container/heap/#Interface provides already? > Almost. It requires me to cast, so I'm wrapping it in a set of functions which makes that cast. With generics, I can get rid of that boilerplate.
-- J. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAGrdgiVXoC%3DF_CNSxE5cC6E%3D7s4WrhF-NzqAM7bEwoo63vAD2w%40mail.gmail.com.