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

ModInt #3

Open
hexthedev opened this issue Feb 12, 2021 · 0 comments
Open

ModInt #3

hexthedev opened this issue Feb 12, 2021 · 0 comments

Comments

@hexthedev
Copy link
Owner

hexthedev commented Feb 12, 2021

Would be fun to define objects for doing mod mathmatics. I see it kind of like this:

ModInt x = new ModInt(5, 26)
ModInt y =x + 27
Console.WriteLine(y) // prints 7 

Basically overloads all the operators and has explicit casts so that mod math works. It's like having a new primative that works in mod space

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

1 participant