-
Notifications
You must be signed in to change notification settings - Fork 13
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
Get start and end of range quickly for Intl.NumberFormat #15
Comments
It's unclear whether "1-5" is inclusive range or exclusive range. I guess most people would treat it as inclusive. But current proposed iteration semantic is exclusive. |
I’d expect the same as slice: |
The exclusive semantics is inspired by Python style |
@sffc Hi, now the return value of And if |
It would be nice if you could do,
To do this, we'd need to efficiently get both the beginning and end of the range. To do this, the
.range()
functions could return a type that has a[Symbol.iterator]
getter but also getters like.start
and.end
, for example.The text was updated successfully, but these errors were encountered: