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

Feature request: range selection #55

Open
bramtayl opened this issue Sep 28, 2020 · 1 comment
Open

Feature request: range selection #55

bramtayl opened this issue Sep 28, 2020 · 1 comment

Comments

@bramtayl
Copy link

I'm not exactly sure of the best syntax here, but if there's not already a way to do it, it might be nice to be able to use indexing to select all keys within a range:

dictionary[2:3] could create an ordered dict (or view?) with just the keys between 2 and 3

dictionary[2:end] could create an ordered dict (or view?) with all keys 2 or more

dictionary[start:2] could create an ordered dict (or view?) with all keys 2 or less.

@bramtayl
Copy link
Author

I could be convinced to do a PR

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

No branches or pull requests

1 participant