We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
The shuffle function is not pure functional, it's stateful by definition and by design.
Two calls to shuffle(x) with the same parameter x may by design return different results, so it's not referentially transparent.
shuffle(x)
x
I'm not sure what I was thinking here. It's useful but flies in the face of the principles of this library.
It would be possible to take a PRNG state as an argument to regain referential transparency but I'm not sure I really want to do that here.
The text was updated successfully, but these errors were encountered:
🎉 This issue has been resolved in version 7.0.0-alpha.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
3a310e5
🎉 This issue has been resolved in version 7.0.0 🎉
No branches or pull requests
The shuffle function is not pure functional, it's stateful by definition and by design.
Two calls to
shuffle(x)
with the same parameterx
may by design return different results, so it's not referentially transparent.I'm not sure what I was thinking here. It's useful but flies in the face of the principles of this library.
It would be possible to take a PRNG state as an argument to regain referential transparency but I'm not sure I really want to do that here.
The text was updated successfully, but these errors were encountered: