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

zshr #21

Closed
paulyoung opened this issue May 26, 2018 · 6 comments
Closed

zshr #21

paulyoung opened this issue May 26, 2018 · 6 comments

Comments

@paulyoung
Copy link
Contributor

I realize that this is probably only missing because there isn’t an equivalent function in big-integer but I’m wondering if it could be defined in terms of the existing functions.

@paulyoung
Copy link
Contributor Author

Maybe it’s just zshr = shr <<< abs?

@paulyoung
Copy link
Contributor Author

Or rather, something similar that type checks 😄

@sharkdp
Copy link
Collaborator

sharkdp commented May 27, 2018

I have never heard of this operation and I would rather not implement it here, if it is not included in big-integer.

@paulyoung
Copy link
Contributor Author

That's fair enough.

FWIW it's the equivalent of this: https://pursuit.purescript.org/packages/purescript-integers/4.0.0/docs/Data.Int.Bits#v:zshr

@sharkdp
Copy link
Collaborator

sharkdp commented Jun 2, 2018

Thank you for the clarification. If we should include this here, I think it would be best to ask for it to be included in big-integer.

@sharkdp sharkdp closed this as completed Jun 2, 2018
@paulyoung
Copy link
Contributor Author

I opened peterolson/BigInteger.js#137.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants