Content-Length: 337933 | pFad | https://github.com/TheAlgorithms/Go/pull/528

F5 add generics by crunchypi · Pull Request #528 · TheAlgorithms/Go · GitHub
Skip to content

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

Merged
merged 1 commit into from
Sep 9, 2022
Merged

add generics #528

merged 1 commit into from
Sep 9, 2022

Conversation

crunchypi
Copy link
Contributor

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)

siriak
siriak previously approved these changes Aug 31, 2022
Copy link
Member

@siriak siriak left a 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?

@tjgurwara99
Copy link
Member

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 😄

Copy link
Member

@tjgurwara99 tjgurwara99 left a 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.

@crunchypi
Copy link
Contributor Author

Heya, I’ve had a look at the suggestions — will think on it and reply later on today

@crunchypi
Copy link
Contributor Author

Alright, did the amending -- should cover the discussed things (+ changed the use of new(...) in func (ll *Singly[T]) ReversePartition into the var _ T syntax).

@tjgurwara99 tjgurwara99 merged commit 6c8e822 into TheAlgorithms:master Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/TheAlgorithms/Go/pull/528

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy