Skip to content

Ranges #523

Closed Answered by jhpratt
ferdinandkeller asked this question in Question
Nov 15, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

I have thought about this before, but not very much. I am open to the idea. As you're working on it anyway, feel free to open a pull request. Worst case is I would prefer a better API. Ultimately I'd like to use the unstable Step trait for some functionality, but there is no progress on stabilization there.

With regard to whether a value is in a certain range, you can actually use (a..b).contains(&c).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ferdinandkeller
Comment options

@jhpratt
Comment options

Answer selected by ferdinandkeller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants