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 }}
Repository navigation
Proposal: slice and between become half-open by default, changeable via optional argument #869
We change slice and between to be open on the end of their range by default, and add the optional arguments left_bound and right_bound which can be either open or closed:
> r([1,2,3]).slice(0,2)[1,2]
> r([1,2,3]).slice(0,2,:right_bound=>:closed)[1,2,3]
> r([1,2,3]).slice(0,2,:left_bound=>:open)[2]# Same for between
We would also change the Ruby driver to make .. use the closed right bound and ... use the open right bound.
Update: I think we should change delete_at to be half-open as well when
we do this.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/869#issuecomment-19060106
.
Activity
mlucy commentedon Jun 6, 2013
Update: I think we should change
delete_atto be half-open as well when we do this.jdoliner commentedon Jun 6, 2013
This is how python works.
On Thu, Jun 6, 2013 at 10:16 AM, Michael Lucy [email protected]:
mlucy commentedon Jun 21, 2013
Alright, this seems settled with very little disagreement.
mlucy commentedon Jul 9, 2013
I've started work on this.
mlucy commentedon Jul 17, 2013
This is in review 743 by @Tryneus .
mlucy commentedon Jul 19, 2013
This is in next.