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
monarchdodra
604f327971
Fix failing win unittests
2014-05-01 11:39:38 +02:00
Andrej Mitrovic
915b2d77e6
Merge pull request #2095 from monarchdodra/imports
...
Scope and conditionally import `std.typecons : Tuple`
2014-04-25 23:21:04 +02:00
monarchdodra
8d2b33c594
Scope std.typecons : Tuple imports
2014-04-21 23:25:05 +02:00
Andrej Mitrovic
f205f7d7c5
Replace implicit catches of Throwables with explicit catches.
2014-04-21 23:05:50 +02:00
MetaLang
e4491ddd0f
Merge branch 'master' into std-range-tee-fixup
2014-04-06 21:16:29 -03:00
MetaLang
e4d33e7710
Change _output.put(_input.front) to put(_output, _input.front)
2014-04-06 20:43:30 -03:00
MetaLang
0f1aa52cb8
More unit tests for output ranges, fixed a bug when passing a non-template static lambda to tee
2014-03-26 22:12:24 -03:00
MetaLang
a721914ab5
Another unit test for diverting to an output range
2014-03-26 21:02:37 -03:00
MetaLang
cd5baea3be
Fix unittest taking a function as an OutputRange
2014-03-25 01:45:57 -03:00
MetaLang
14b6a4b25f
Partially done new unit tests for outputting to OutputRanges
2014-03-24 23:43:11 -03:00
MetaLang
9300935693
Fix small typo that was causing a compile error, redo comments
2014-03-24 22:57:46 -03:00
MetaLang
4d33f11640
Small formatting fix
2014-03-24 22:19:19 -03:00
MetaLang
c64d366d6a
Revamp to allow tee to take either an OutputRange or a lambda to output to
2014-03-24 22:17:33 -03:00
Andrei Alexandrescu
b9ff961d1d
Added the text of the failing unittest
2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
f364c390e8
rebased, fixed conflict
2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
bb2ab1bebd
review
2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
67b5ffc2ff
Improved error messages
2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
6095350e2a
Fix Issue 9616 - SortedRange should support all range kinds
2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
6df2098064
Improved error messages
2014-03-23 00:49:41 -07:00
Andrei Alexandrescu
8366c67d9e
Fix Issue 9616 - SortedRange should support all range kinds
2014-03-23 00:49:41 -07:00
Infiltrator
3fe27f4cd1
Update range.d
2014-03-20 12:41:21 +11:00
Infiltrator
ee2d46263b
Issue 5870 - Debug code in SortedRange assumes it can always print the range
2014-03-20 11:32:51 +11:00
MetaLang
8eabb58fd8
Remove forwarding of save and remove unittests for save functionality
2014-03-18 20:08:53 -03:00