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

String modulus should be like string.strip() #339

Open
stevebrown2600 opened this issue Jul 18, 2024 · 2 comments
Open

String modulus should be like string.strip() #339

stevebrown2600 opened this issue Jul 18, 2024 · 2 comments

Comments

@stevebrown2600
Copy link

"abcabcd" % "ab" = "ccd"

@caseyc37
Copy link

"babab" % "bab" = ???

"ba" or "ab"?

@stevebrown2600
Copy link
Author

I guess whatever the norm is for string strip functions in other languages? I'd assume you go left to right, so "ab", but I don't think it's ever come up for me.

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