Dragos Carp
b170d93693
Fix some PHOBOSSRC broken links
2015-04-29 11:02:58 +02:00
anonymous
0842fc7841
@nogc for std.range.primitives.{empty,save,popFront,popBack,front,back}
...
Excluding the UTF-decoding variants, because those throw GC allocated
exceptions.
Makes sure that issue 12666 - "@nogc std.array.front, popFront, and more"
stays fixed.
2015-04-23 22:15:41 +02:00
Martin Nowak
f4894c6302
Merge pull request #3123 from aG0aep6G/14373
...
fix Issue 14373 - std.range.refRange doesn't work on mere input ranges
2015-04-17 21:47:26 +02:00
drug007
6a51a2b398
Improve unittest for std.range.cycle for better documentation.
...
Add all imports needed to run this unittest as a separate code.
Add detailed description of unittest.
Improved readablitity (removed slicing of static arrays and rearranged functions calls).
2015-04-16 18:25:27 +03:00
anonymous
9c9727154d
check that R is an input range
2015-04-03 12:05:54 +02:00
anonymous
ca4e7d22ec
fix Issue 14373 - std.range.refRange doesn't work on mere input ranges
2015-03-29 13:29:39 +02:00
Walter Bright
a0f0a3930d
improve doc for std.range.primitives.isInputRange
2015-03-29 00:46:47 -07:00
Robert Schadek
876900d1f8
Merge pull request #3086 from WalterBright/iota-example
...
add illuminating example to std.range.iota
2015-03-25 11:43:20 +01:00
Walter Bright
e9b6c84f99
add illuminating example to std.range.iota
2015-03-24 21:11:11 -07:00
Vladimir Panteleev
15d5501d99
std.range.package: Fix unbalanced DDoc paren
2015-03-19 21:51:13 +00:00
H. S. Teoh
b608e61c43
Merge pull request #3003 from kuettler/sort_range_toc
...
Sort ddoc table of functions in range package
2015-03-19 13:42:55 -07:00
H. S. Teoh
fa297af0e6
Merge pull request #3005 from Poita/Issue14183
...
Fix Issue 14183 - Changes to groupBy
2015-03-19 13:04:07 -07:00
Martin Nowak
1e976bc4da
Merge pull request #3002 from burner/generator_successor
...
generator succcessor replacement for PR #2606
2015-03-14 06:04:40 +01:00
Robert burner Schadek
775d2c770c
generator succcessor replacement for PR #2606
...
* split into two generateOnFront, generateOnPopFront
worked in martins suggestion
straits -> traits
no more popFront
martin fixes
2015-03-10 13:58:48 +01:00
John Colvin
6ba693f10a
replace some enforces with contracts
...
added tests
contracts for stride and iota
contracts for stride and iota
2015-03-04 12:35:52 +00:00
Ulrich Kuettler
518ec901de
Sort ddoc table of functions in range package
...
Add a little more structure to the documentation
Case insensitive sorting
Fix wording
2015-02-20 09:56:19 +01:00
Peter Alexander
c6520969ea
Fix Issue 14183 - Changes to groupBy
...
* Renamed `groupBy` to `chunkBy`
* Undocumented `aggregate`
* Added `groupBy` member function to `SortedRange`
* Unary `chunkBy` returns tuple of key and chunk.
https://issues.dlang.org/show_bug.cgi?id=14183
2015-02-18 21:21:27 +00:00
Ulrich Kuettler
568cd18b43
Fix Issue 13390 - Be explicit about non-empty input and fail early
...
Add unittest
2015-02-17 23:01:55 +01:00
Andrei Alexandrescu
5dd6df0bd3
Merge pull request #2996 from quickfur/std_algo_cleanup
...
std.algorithm cleanup
2015-02-16 16:50:14 -08:00
Andrei Alexandrescu
11b32b56e5
Fix links
2015-02-16 13:39:18 -08:00
H. S. Teoh
d4a85e24c4
iota is not in std.algorithm, it's in std.range.
2015-02-16 11:49:26 -08:00
Robert burner Schadek
087c505b86
range documentation update
...
* moved examples from comments to unittests
* marked verify unittests as doc unittests and deleted duplication
2015-02-03 16:13:24 +01:00
Martin Nowak
b5b1625ef7
fix safety of put primitive
2015-02-02 22:39:13 +01:00
Andrei Alexandrescu
c0aad5b580
Fix debug build
2015-02-01 12:51:33 -08:00
Andrei Alexandrescu
71e3ecf680
Merge pull request #2934 from WalterBright/dip25
...
DIP25: make phobos work with it
2015-01-30 13:59:37 -08:00
Walter Bright
dc302d26a4
DIP25: make phobos work with it
2015-01-30 12:02:48 -08:00
Daniel Murphy
f255c9e689
Replace more implicit array to bool conversions
2015-01-28 16:33:12 +11:00
H. S. Teoh
58bbd1984a
Don't assume B.init is an lvalue.
2015-01-24 12:15:27 -08:00
H. S. Teoh
810779c9c4
Fallback to !=/== if < is not available.
2015-01-23 14:48:12 -08:00
H. S. Teoh
49b7fc6ed0
Improve documentation.
...
Add Params:. Use Returns:.
Include previously-overlooked overload that broke a ddoc'd unittest.
2015-01-22 10:11:08 -08:00
H. S. Teoh
56cf7879c1
Extend iota() to support any type that has < and ++.
2015-01-22 09:50:39 -08:00
Andrej Mitrović
f3604ad2e2
Merge pull request #2024 from CyberShadow/fix12409
...
fix Issue 12409 - Add "each" function as found in Ruby and jQuery
2015-01-11 15:02:53 +01:00
Peter Alexander
8bb453a983
Fix Issue 5036 - Remove caching from Sequence
...
This appears to be the last caching range in Phobos.
This is a potentially breaking change: we lose the ability to moveFront, and obviously there may be performance implications if the function is expensive and users are calling front more than once. I think this is still a worthwhile change since it is better to have a uniform policy of no caching on ranges rather than arbitrary selection of ranges that do caching.
https://issues.dlang.org/show_bug.cgi?id=5036
2015-01-02 10:40:25 +00:00
Vladimir Panteleev
bf14b8bd44
fix Issue 12409 - Add "each" function as found in Ruby and jQuery
2015-01-02 10:28:34 +00:00
Andrej Mitrović
3b182e4e04
Merge pull request #2808 from sinkuu/takeone
...
takeOne doesn't work with non-forward ranges
2014-12-31 19:49:33 +01:00
John Colvin
6ae78c3857
replace std.range.roundRobin mixins with static loops.
2014-12-28 18:55:03 +00:00
sinkuu
4031a11a44
takeOne for non-forward ranges
2014-12-24 11:33:00 +09:00
sinkuu
98088bb7df
Remove trailing whitespace
2014-12-24 11:07:57 +09:00
Andrej Mitrovic
67605b53dc
Merge pull request #2771 from quickfur/issue13766
...
Issue 13766: Fix broken ddoc build for std/regex/package.d.
2014-12-06 21:37:03 +01:00
H. S. Teoh
1ddb5010b6
Issue 9507: transposed() behaves poorly with jagged range of ranges
2014-12-05 11:00:58 -08:00
Nick Treleaven
4ba128b828
List walkLength under convenience functions rather than capabilities
2014-12-02 18:25:04 +00:00
H. S. Teoh
33af62ec89
Fix broken PHOBOSSRC link.
...
This is caused by Ddoc's "helpful" auto-highlighting of every occurrence of the
name of the module, including places where it's not very helpful.
2014-12-01 20:47:31 -08:00
H. S. Teoh
ad44c0bc7a
Update std.range.* docs.
...
The previous docs were simply dissected from the original std.range docs, and
the text in each module is truncated and awkward to read. The main package.d
docs were also missing links to the submodules. So, update the docs to reflect
the current state of things.
2014-12-01 20:47:30 -08:00
Tomoya Tanjo
c7e99d9baf
Make std.range.recurrence safe if possible
2014-12-01 19:13:07 +09:00
H. S. Teoh
a4d6c0a947
Merge pull request #2769 from tom-tan/system-range-cycle-for-sarray
...
Mark std.range.cycle for static array and their unittests as system
2014-11-30 19:50:55 -08:00
e10s
92114da099
use ElementType consistently
2014-12-01 02:02:25 +09:00
Rainer Schuetze
7c2f962b10
make nested foreach over TypeTuple bodies into lambdas to avoid huge functions
2014-11-28 17:15:37 +01:00
Tomoya Tanjo
56a543ca81
Mark std.range.cycle for static array and their unittests as system
2014-11-27 18:38:17 +09:00
Tomoya Tanjo
2adaeea02f
Move a modulo operation into the trusted function
2014-11-26 18:56:43 +09:00
Tomoya Tanjo
2aeba852ec
Remove redundant alias
2014-11-25 15:06:01 +09:00