Skip to content
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

Linked List - Purpose of Callback Function #625

Closed
halitaydin opened this issue Jan 14, 2021 · 2 comments
Closed

Linked List - Purpose of Callback Function #625

halitaydin opened this issue Jan 14, 2021 · 2 comments

Comments

@halitaydin
Copy link

Hello folks,

I need to know purpose of callback function in find method in linked-list class. Is that callback function require for usage or not so important? If yes, how can i use it?
I have searched other sites and books but not find any solution.

Thank you for your helps.
LinkedList find method

@josesanchez-hotmart
Copy link

josesanchez-hotmart commented Jan 14, 2021

Reading the tests, the callback works as a custom constraint you apply to find an element in the linked list; as a function, it should return true for the elements you want to find. Check here to see how it's used.

@halitaydin
Copy link
Author

Thank you Jose, now everything is clear.

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

No branches or pull requests

2 participants