Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
bad-apple
· 6y ago · 0 comments
I think Rust has another good alternative to this, although it might be cheating a little: you can just write (lo..hi).rev(). That way, the common case of going forwards is nice, and the case of going backward isn't much worse.
Comments
No comments yet.
Better HN