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

Add: BinaryInteger/isMultiple(of:) #87

Open
oscbyspro opened this issue Sep 8, 2024 · 1 comment
Open

Add: BinaryInteger/isMultiple(of:) #87

oscbyspro opened this issue Sep 8, 2024 · 1 comment
Labels
addition oh, so shiny!

Comments

@oscbyspro
Copy link
Owner

oscbyspro commented Sep 8, 2024

Swift has a BinaryInteger/isMultiple(of:) method, and I don't see a great reason to exclude it from this project. I suppose the difficult part is deciding what to with infinite values. Some factorizations are possible, even for infinite values, but I don't think it's possible in general. I might limit non-optional results to Finite<T> and FiniteInteger. Hm.

@oscbyspro oscbyspro added the addition oh, so shiny! label Sep 8, 2024
@oscbyspro oscbyspro changed the title BinaryInteger/isMultiple(of:) Add: BinaryInteger/isMultiple(of:) Sep 8, 2024
@oscbyspro
Copy link
Owner Author

I'll have to think about it, but it might be similar to division where 3/4 unsigned arbitrary integer cases are well-behaved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition oh, so shiny!
Projects
None yet
Development

No branches or pull requests

1 participant