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

Optimize Range#sample(n) for integers and floats #12535

Conversation

straight-shoota
Copy link
Member

This is a re-issue of #10310 with just a couple of polishing changes in the last commit. The main part was already implemented in the original PR. It just needed a little bit to make it ready.

Resolves #12531

@straight-shoota straight-shoota added this to the 1.7.0 milestone Sep 28, 2022
Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @straight-shoota 🙏

@straight-shoota straight-shoota merged commit 8ac2216 into crystal-lang:master Oct 24, 2022
@straight-shoota straight-shoota deleted the feature/range-sample-for-int-and-float branch October 24, 2022 09:48
lbguilherme pushed a commit to lbguilherme/crystal that referenced this pull request Oct 24, 2022
Co-authored-by: Ary Borenszweig <asterite@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize Range#sample(n)
3 participants