Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
rust-itertools
/
itertools
Public
Notifications
You must be signed in to change notification settings
Fork
355
Star
3.2k
Code
Issues
137
Pull requests
52
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Add helper method for taking the k smallest elements in an iterator
- #473
#473
Merged
bors[bot]
merged 13 commits into
rust-itertools:master
rust-itertools/itertools:master
from
nicoonoclaste:k_smollest
Copy head branch name to clipboard
Dec 14, 2020
Conversation
Commits
13
(13)
Checks
Files changed
Merged
Add helper method for taking the k smallest elements in an iterator
#473
bors[bot]
merged 13 commits into
rust-itertools:master
rust-itertools/itertools:master
from
nicoonoclaste:k_smollest
Copy head branch name to clipboard
Commits
Commits on Oct 2, 2020
Add Itertool::k_smallest method, in std context
nicoonoclaste
committed
46a739f
View commit details
Copy full SHA for 46a739f
Browse repository at this point
k_smollest: Add debug_assert for invariant
nicoonoclaste
committed
51670c9
View commit details
Copy full SHA for 51670c9
Browse repository at this point
Add property-based test for k_smallest when applied to ranges
nicoonoclaste
committed
e71977e
View commit details
Copy full SHA for e71977e
Browse repository at this point
tests::k_smallest_range: Shuffle the input before taking the k smallest
nicoonoclaste
committed
11b54cc
View commit details
Copy full SHA for 11b54cc
Browse repository at this point
k_smallest: Clarify what happens when self.len() < k
nicoonoclaste
committed
b0443e0
View commit details
Copy full SHA for b0443e0
Browse repository at this point
k_smallest: Document the equivalence with self.sorted().take(k)
Show description for d292fa0
nicoonoclaste
committed
d292fa0
View commit details
Copy full SHA for d292fa0
Browse repository at this point
tests::test_std: Support generating random iterators with quickcheck
nicoonoclaste
committed
7aadb1e
View commit details
Copy full SHA for 7aadb1e
Browse repository at this point
Add generic test comparing k_smallest(k) and sorted().take(k)
Show description for 036a451
nicoonoclaste
committed
036a451
View commit details
Copy full SHA for 036a451
Browse repository at this point
k_smallest: Comment what we do with peek_mut()
nicoonoclaste
committed
900f1e8
View commit details
Copy full SHA for 900f1e8
Browse repository at this point
test_std::k_smallest: Avoid allocating too much memory
Show description for f31b617
nicoonoclaste
committed
f31b617
View commit details
Copy full SHA for f31b617
Browse repository at this point
k_smallest: Work around suboptimality in `peek_mut`
Show description for 45e5a64
SkiFire13
and
nicoonoclaste
committed
45e5a64
View commit details
Copy full SHA for 45e5a64
Browse repository at this point
test_std: Add generic_test! to instanciate tests w/ multiple types
nicoonoclaste
committed
11b2058
View commit details
Copy full SHA for 11b2058
Browse repository at this point
Make k_smallest work with just `alloc`
nicoonoclaste
committed
f28ffd0
View commit details
Copy full SHA for f28ffd0
Browse repository at this point
You can’t perform that action at this time.