[phobos] [dlang/phobos] 1f23dd: support startingIndex == r.length for std.range.ra...
GitHub via phobos
phobos at puremagic.com
Mon Jun 20 17:15:41 PDT 2016
Branch: refs/heads/master
Home: https://github.com/dlang/phobos
Commit: 1f23dd61de48c0abb70392931159ed99c2c6f5e1
https://github.com/dlang/phobos/commit/1f23dd61de48c0abb70392931159ed99c2c6f5e1
Author: Martin Nowak <code at dawg.eu>
Date: 2016-06-20 (Mon, 20 Jun 2016)
Changed paths:
M std/range/package.d
Log Message:
-----------
support startingIndex == r.length for std.range.radial
- useful for searching around a mid-point in a sorted array,
e.g. foreach (e; r.radial(r.lowerBound(pivot).length))
- symmetric support of both empty left and right subrange
- still throws when startingIndex is bigger than r.length
Commit: ce1748221e5922902adb44da284f0bf645ed0646
https://github.com/dlang/phobos/commit/ce1748221e5922902adb44da284f0bf645ed0646
Author: Martin Nowak <code at dawg.eu>
Date: 2016-06-21 (Tue, 21 Jun 2016)
Changed paths:
M std/range/package.d
Log Message:
-----------
add comment about radial edge cases
Commit: 137a5cf38165287e99fc0a05ddc21b5b4d473661
https://github.com/dlang/phobos/commit/137a5cf38165287e99fc0a05ddc21b5b4d473661
Author: Andrei Alexandrescu <andrei at erdani.com>
Date: 2016-06-20 (Mon, 20 Jun 2016)
Changed paths:
M std/range/package.d
Log Message:
-----------
Merge pull request #4442 from MartinNowak/support_range_length_radial
support startingIndex == r.length for std.range.radial
Compare: https://github.com/dlang/phobos/compare/77c8df60c51e...137a5cf38165
More information about the phobos
mailing list