MetaLang
47d659dcf2
Remove EArrayInit as it's no longer needed
2014-11-06 18:18:01 -04:00
Brad Roberts
b7d0bf7910
add @safe annotations to all unittests which 'just work'
2014-10-20 15:51:23 -07:00
monarch dodra
d348ab7f92
Merge pull request #2615 from braddr/cycle_safety
...
Make cycle(staticarray) @safe
2014-10-21 00:09:07 +02:00
Brad Roberts
c69a1e7dde
Add @safe to cycle unittests except for cycle(staticarray)
2014-10-20 14:28:01 -07:00
Brad Roberts
61a01cbf27
sequence should be @safe
2014-10-13 00:09:17 -07:00
Brad Roberts
1666bb6821
cycle should be @safe
2014-10-13 00:09:17 -07:00
H. S. Teoh
7914fa31cb
Issue 9535: Add more examples to std.range.sequence.
...
Demonstrate expected arguments for lambda / explicit function variants.
Demonstrate random access(!).
2014-09-23 13:28:59 -07:00
e10s
8d2cebc305
use ElementType!R1 instead of typeof(inputRange.front)
2014-09-23 22:21:14 +09:00
Михаил Страшун
2ad0698308
Merge pull request #1866 from JakobOvrum/enumerate
...
Add std.range.enumerate
2014-09-20 16:14:02 +04:00
H. S. Teoh
db0fa5e7d5
Merge pull request #2522 from sinkuu/fix_tee
...
std.range.tee should accept function symbols
2014-09-19 12:04:38 -07:00
H. S. Teoh
93160c79ac
Show examples for each possible function form.
2014-09-18 12:32:20 -07:00
H. S. Teoh
00f8ab516a
Use ddoc'd unittest instead of inline code of questionable workability.
2014-09-18 12:23:35 -07:00
H. S. Teoh
b205b72ea9
Document signature of function to be passed to recurrence().
2014-09-18 12:12:46 -07:00
H. S. Teoh
0fb1bee92d
Merge pull request #2530 from jwhear/patch-2
...
Update zip documentation
2014-09-18 10:03:45 -07:00
Justin Whear
ef7c51783a
Update zip documentation
...
The example of sorting a zipped range was very confusing as it used a string literal sorting predicate, requiring use of "a" and "b" which were already being used as the names of the two ranges being zipped. Updated the sorting predicate to use a lambda with parameters "c" and "d".
2014-09-18 08:50:23 -07:00
H. S. Teoh
99d728a3eb
Add @nogc unittest for std.range.retro.
...
To prevent regression of issue 12662.
2014-09-18 07:46:32 -07:00
sinkuu
3b59042897
Fix issue 13483 std.range.tee should accept function symbols
2014-09-17 15:51:50 +09:00
monarch dodra
fb88c5a83d
Merge pull request #2499 from CyberShadow/pull-20140908-215454
...
fix Issue 13441 - joiner asserts with only(x) separator
2014-09-10 18:52:30 +02:00
Andrej Mitrovic
a460ba8c48
Merge pull request #1010 from monarchdodra/rangeTraits
...
Consolidating Range traits
2014-09-10 11:08:33 +02:00
Vladimir Panteleev
c506b03ec4
fix Issue 13441 - joiner asserts with only(x) separator
2014-09-09 11:35:20 +00:00
Jakob Ovrum
8ee6d8f97b
Add std.range.enumerate
...
Fixes issue 5550
2014-09-08 12:33:36 +09:00
Vladimir Panteleev
53268718ce
std.range: Fix links in tee documentation
2014-09-07 09:56:49 +00:00
MetaLang
d3795890bc
Change unittest from writing output to concatening to an array and checking the content
2014-09-01 20:42:01 -03:00
Denis Shelomovskij
22b391bd25
Fix property enforcement in std.range.takeExactly
.
2014-08-22 21:13:51 +04:00
Jakob Ovrum
d5b0a59866
Make TakeExactly!R implicitly convertible to Take!R
2014-07-26 12:20:34 +09:00
Dmitry Olshansky
4f8d081454
Merge pull request #1138 from quickfur/transposed
...
Fix issue 4330 and issue 8764
2014-07-17 19:23:30 +04:00
John Colvin
439ef77c54
actually fix the unittest...
2014-07-17 12:07:51 +01:00
John Colvin
a9fdc506d0
fix unittest
2014-07-17 12:03:39 +01:00
John Colvin
be3a59ecf8
prevent ambiguity when calling take with a Take!R
...
If Take!R satisfied ```isInputRange!(Unqual!R) && !isInfinite!(Unqual!R) && hasSlicing!(Unqual!R)``` then you would get an ambiguity error calling take!(Take!R)
2014-07-17 11:36:16 +01:00
MetaLang
064375dfa4
Change comments on tee overload taking functions as OutputRanges to hide implementation details from users.
2014-07-14 12:40:59 -03:00
MetaLang
5717690895
Add explanation for overload of tee that can take a template lambda or a function.
2014-07-14 01:50:31 -03:00
MetaLang
9ede1c0643
Small change to documented unittest
2014-07-13 18:54:14 -03:00
MetaLang
195170abfe
Add documented unittests, fix small nits
2014-07-13 17:38:50 -03:00
MetaLang
bce1e9634e
Merge branch 'master' into std-range-tee-fixup
...
Conflicts:
std/range.d
2014-07-13 16:53:56 -03:00
H. S. Teoh
dcd6a11bd7
Move docs from struct Transposed to transpose().
2014-07-10 09:31:17 -07:00
H. S. Teoh
4113afc85a
Fix issue 8764
...
Transposed can only work with ranges of ranges if the subranges are
assignable. Add signature constraints.
Fix forward range bugs (should use .save instead of just copying the
range object).
Add unittests.
2014-07-10 09:29:07 -07:00
H. S. Teoh
9caa23a682
Document std.range.transposed (issue 4330).
...
Add unittested example as well.
2014-07-10 09:29:06 -07:00
Joakim
11de397dd7
Start getting tests passing on Android/x86
2014-07-09 17:52:15 -05:00
k-hara
5b39ab253c
Make side effect on strongly pure function call
2014-06-14 23:17:44 +09:00
Denis Shelomovskij
14d914074a
Fix property enforcements in std.range
mixins.
2014-06-13 14:12:55 +04:00
Dmitry Olshansky
c496463339
Merge pull request #2203 from monarchdodra/isSomeString
...
Constrain isSomeString
2014-05-31 04:10:42 -07:00
Walter Bright
eceb175e03
add NullSink output range
2014-05-27 10:35:41 -07:00
monarchdodra
e2e3a70a62
Constrain isSomeString
2014-05-25 17:43:42 +02:00
Walter Bright
1778e9fa40
Merge pull request #2156 from monarchdodra/stringMixin
...
Remove gratuitous string mixins
2014-05-12 02:26:42 -07:00
monarchdodra
faf7491d3c
Fix Issue 12731 - Infinite range slices are not themselves sliceable
2014-05-11 14:30:57 +02:00
monarchdodra
510c1c5a0e
Remove useless variable
2014-05-10 21:59:53 +02:00
monarchdodra
c7dfd80e61
Use template mixin over string mixin
2014-05-10 21:59:53 +02:00
monarchdodra
61ada695e3
Remove gratuitous string mixins
2014-05-10 21:21:13 +02:00
qchikara
6daa57a261
WorkAround 12661: To make SortedRange#this() nothrow
...
Debug statements prevent this function from nothrow.
So I take them out of the function body and put them into the
postcontract which has another context.
2014-05-06 21:52:56 +09:00
Andrej Mitrovic
3f4fde2002
Merge pull request #2139 from monarchdodra/sortedrange
...
Fix Issue 9616 - SortedRange should support all range kinds
2014-05-01 20:03:20 +02:00