Skip to content

Add IsEven function and update README.md #25

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 8 commits into from
Aug 15, 2025

Conversation

tarun2684
Copy link
Contributor

@tarun2684 tarun2684 commented Jul 17, 2025

This pull request adds a new Kotlin function isEven which checks whether a given integer is even. The function is placed in IsEven.kt inside the appropriate directory, and an entry has been added to the README.md under the snippets section

Closes #21

Copy link

welcome bot commented Jul 17, 2025

🚀 Thanks for your PR — great to have you here!
We’ll review it shortly. Stay awesome! 💪

@e5LA
Copy link
Owner

e5LA commented Jul 17, 2025

👋 Thanks so much for the PR @tarun2684, this is a great start.

To keep things consistent with the rest of the project, could you please add:

  1. A test file (i.e. IsEvenTest.kt) with a few basic cases;
  2. Correct package on top of the file (i.e. codecollection.snippets.numbers)

@e5LA e5LA self-requested a review July 17, 2025 15:08
@tarun2684
Copy link
Contributor Author

Thanks @e5LA , sure will do the rest.

@e5LA
Copy link
Owner

e5LA commented Jul 22, 2025

Hey @tarun2684 let me know if you need any support here 🤝

@github-actions github-actions bot added the type: snippet Small, reusable Kotlin functions or expressions label Jul 26, 2025
@e5LA e5LA merged commit 845fd4f into e5LA:main Aug 15, 2025
2 checks passed
Copy link

welcome bot commented Aug 15, 2025

🎉 Your first PR is merged — welcome aboard!
Thanks for contributing — we’d love to see you again. 💜

@e5LA
Copy link
Owner

e5LA commented Aug 15, 2025

@tarun2684 I've applied the changes, feel free to have a look. I've merged them in.
Thanks again 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: snippet Small, reusable Kotlin functions or expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check if a number is even
2 participants