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
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
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
unknown
65ccf40e05
Consolidating range traits
2014-03-25 21:14:51 +01:00
MetaLang
cd5baea3be
Fix unittest taking a function as an OutputRange
2014-03-25 01:45:57 -03:00