-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
add generics #528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add generics #528
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! @tjgurwara99 what do you think?
Haven't properly reviewed it - I glanced a bit and had some comments but didn't have time to completely review it. Will do that tonight 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments on things that I think could be better in a different way. Please consider the following suggestions.
Heya, I’ve had a look at the suggestions — will think on it and reply later on today |
Alright, did the amending -- should cover the discussed things (+ changed the use of |
Added generic syntax for /structure/linkedlist; led to also having a need to change
some function signatures e.g
func (ll *Singly[T]) DelAtBeg() int // -1 on not-found
->
func (ll *Singly[T]) DelAtBeg() (T, bool)