Skip to content

Add Increment and Decrement Functions #79

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

erfan-goodarzi
Copy link
Member

This PR Adds increments and decrements functions.

Resolves #77

@erfan-goodarzi erfan-goodarzi self-assigned this Apr 19, 2025
@ASafaeirad
Copy link
Member

ASafaeirad commented Apr 23, 2025

I'm not sure we need to add the step argument 🤔
It becomes sum and subtract function. Also, people can provide a negative number as a step, which is counterintuitive.

@erfan-goodarzi
Copy link
Member Author

I'm not sure we need to add the step argument 🤔 It becomes sum and subtract function. Also, people can provide a negative number as a step, which is counterintuitive.

The step is optional. Our function works without providing any step.
The thing is we can consider it like this: increase by 1, increase by 2, increase by 3. In any case inc function is a sum function.

if we decided to keep the step i'll handle the negative case that u mentioned before.

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.

[Proposal]: inc and dec
2 participants