-
-
Notifications
You must be signed in to change notification settings - Fork 203
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 Iso for Int and List of digits. #34
Comments
good idea, it should be something like: |
It could be done for any base. |
or any base from 2 to 36 like http://hackage.haskell.org/package/lens-4.1.2/docs/Numeric-Lens.html |
@julien-truffaut Or any supplied base. |
right, if someone provide all values of a base then it is easy to make the mapping |
Oh I thought of a problem: We need to have an Iso between Int and a list of digits, not represented directly by ints. |
we probably want to create an Iso between a List of digits and a BigInt then we can create a Prism between BigInt and Int |
@julien-truffaut Well we could generalize such things efficiently with Spire... |
BTW, I started working on this. |
We could generalize the number parsing with Abilian Group too. |
From the recent activity on this ticket, I suppose no one is really interested by it. So I propose we close this issue. |
Add Iso for Int and List of digits.
The text was updated successfully, but these errors were encountered: