emirpasic / gods

GoDS (Go Data Structures) - Sets, Lists, Stacks, Maps, Trees, Queues, and much more
Other
16.32k stars 1.77k forks source link

generic upgrade request #222

Closed guanguoyintao closed 1 year ago

guanguoyintao commented 1 year ago

Because many container classes return []interface, there is still an O(n) range processing in the follow-up, but this problem can be solved through generics. Do you have any plans to upgrade? I can contribute

ugurcsen commented 1 year ago

This needs to be major upgrade for this project. It's hard to be compatible with older versions. I implement generics in this repo that you can use for now https://github.com/ugurcsen/gods-generic. Can we publish this repo in this project as a sub-package?

gedw99 commented 1 year ago

Thankyou @ugurcsen

yangyile1990 commented 10 months ago

you really did a nice job! 我只能说:你干得漂亮。 @ugurcsen