Andrei Alexandrescu
9d7b13b95b
Merge pull request #5961 from wilzbach/std-range-nullSink
...
std.range.nullSink - allow convenient use of the NullSink
2018-01-26 18:41:56 -05:00
RazvanN7
fa52c3f709
Fix erroneous imports in unittests
2018-01-23 13:10:34 +02:00
Jack Stouffer
c9122a534a
Added more examples to std.range.put
2018-01-17 13:46:59 -05:00
Sebastian Wilzbach
1a94c194c6
Revive std.range.slide
2018-01-17 06:36:46 +01:00
Jack Stouffer
6909455910
Make the behavior of put with slices clear
2018-01-16 10:57:21 -05:00
Sebastian Wilzbach
7de3787876
Use static foreach in Phobos
2018-01-03 17:30:11 +01:00
Sebastian Wilzbach
b80820e50f
std.range.nullSink - allow convenient use of the NullSink
...
`nullSink` returns the `NullSink` by reference and thus allows using it
directly in code which expects an OutputRange by reference.
The pattern is providing convenience wrappers for struct construction is
very common in Phobos, e.g. `rebindable`, `nullable`, `refCounted`, ...
2017-12-25 00:02:04 +01:00
Steven Schveighoffer
66d3950f5f
get rid of stray parenthesis
2017-12-18 17:05:21 +01:00
Steven Schveighoffer
7a7bd7d33f
One additional TD needed
2017-12-18 17:05:21 +01:00
Dashster
3750edc64f
Update interfaces.d
...
$(TR $(TD $(LREF OutputRangeObject))
$(TD Class that implements the $(D OutputRange) interface and wraps the
$(D put) methods in virtual functions.
*************************************************************
)) <- add the missing ending double parentheses
***************************************************************
2017-12-18 17:05:21 +01:00
Sebastian Wilzbach
058fdd8ebb
Fix Issue 18092 - Can't combine take and takeExactly
2017-12-18 05:27:45 +01:00
Sebastian Wilzbach
45760aa001
Add @safe to unittest in std.range
2017-12-17 20:43:06 +01:00
Sebastian Wilzbach
9e58ebb708
Add platform-dependent tests for std.range.hasLength
2017-12-13 09:11:45 +01:00
Sebastian Wilzbach
b97afe2016
Move deprecations along: std.range.hasLength
2017-12-13 07:25:44 +01:00
John Colvin
909fe002b0
no more underscores
2017-12-08 21:26:23 +00:00
John Colvin
f27932fbf5
unecessary annotations
2017-12-08 21:05:28 +00:00
John Colvin
6753b83173
test choose for @nogc
2017-12-08 21:05:28 +00:00
John Colvin
088b61548e
style
2017-12-08 21:05:27 +00:00
John Colvin
4d60d572c7
fix ChosenRange member initialisation
2017-12-08 21:05:27 +00:00
John Colvin
c5288e33ba
fix ChosenRange ref element access
2017-12-08 21:05:27 +00:00
John Colvin
397dbfd083
simplify ChooseResult implementation
2017-12-08 21:05:27 +00:00
John Colvin
d5f2228455
fix choose.opSlice for infinite ranges
2017-12-08 21:05:27 +00:00
John Colvin
f75a79cc07
make std.range.choose{Among}? @safe ctfe-able
2017-12-08 21:05:27 +00:00
The Dlang Bot
c61933e959
Merge pull request #5906 from dukc/betterTests
...
Added more attributes to unittests so they can catch more regressions.
merged-on-behalf-of: MetaLang <MetaLang@users.noreply.github.com>
2017-12-05 18:11:25 +01:00
The Dlang Bot
08cfb95d59
Merge pull request #5905 from dukc/lockstepNote
...
Limitation note to lockstep and zip.
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-12-05 15:31:12 +01:00
Andrei Alexandrescu
f90fc45fe6
readjustments
2017-12-05 08:53:35 -05:00
Andrei Alexandrescu
76773fa83a
adjustments
2017-12-05 08:52:08 -05:00
dukc
f4c7e97f1c
Added a note of inability of zip and lockstep to infer all their attributes.
2017-12-04 22:44:02 +02:00
dukc
114e9520cc
Split an unittest in two.
2017-12-04 22:20:34 +02:00
dukc
d13702f3e0
Added more attributes to unittests so they can catch more regressions.
2017-12-04 19:58:38 +02:00
Johan Engelen
e0e015d03f
[Trivial] improve documentation of popBackN
...
note that the popBackN doc is shared with popFrontN. This change moves the description of popBackN up, such that it is closer to where the reader will want to find it. Also adds more explicit mention of popFrontN, such that it is clear which one of the two is being described.
2017-12-03 14:37:13 +09:00
Johan Engelen
5f05f489af
[Trivial] Fix typo
2017-12-01 18:37:18 +09:00
Sebastian Wilzbach
df6365092a
Replace body
keyword with its replacement: do
...
Automatic replacement with
sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Alexandru Caciulescu
cfb5bcfae8
Clean template arg
2017-11-07 17:37:32 +02:00
Alexandru Caciulescu
6e11f9789a
Merge branch 'master' into issue-17742-transposed-opIndex
2017-11-02 16:05:35 +02:00
Alexandru Caciulescu
ac29b7bada
Fix Issue 17742 - std.range.transposed does not have opIndex
2017-11-02 16:03:52 +02:00
Steven Schveighoffer
085854614e
Moved warning to public documentation
2017-11-01 16:21:37 -04:00
Alexandru Caciulescu
3182684058
Update package.d
2017-11-01 18:05:22 +02:00
Steven Schveighoffer
f0135c1afa
Fix the deprecation message and docs a bit.
2017-11-01 11:55:34 -04:00
Alexandru Caciulescu
cd55be3311
Fix Issue 17952 - std.range.transposed save is invalid
2017-11-01 17:30:09 +02:00
RazvanN7
8525d60821
Replace hasLength
2017-10-12 11:14:09 +03:00
RazvanN7
a3a9fc5b80
Fix documentation
2017-10-09 16:37:54 +03:00
RazvanN7
bf1c178382
Fix Issue 6409 - std.array.empty for associative arrays too
2017-09-07 19:29:18 +03:00
Martin Nowak
89d54ea543
Merge remote-tracking branch 'upstream/stable' into merge_stable
2017-08-29 15:31:29 +02:00
Basile Burg
cf422b0521
fix issue 17780 - Malformed DDOC links in std.range
2017-08-27 09:23:55 +02:00
RazvanN7
c7dbebe0df
Fix Issue 6004 - std.range.unzip()
2017-08-24 10:31:43 +03:00
dukc
e98e0f44a6
In operator from righthand side for SortedRange.
2017-08-18 17:56:12 +03:00
The Dlang Bot
6b460ab717
Merge pull request #5688 from quickfur/issue17661
...
Issue 17661: isInputRange should accept .front that returns reference to range
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-08-14 12:52:07 +02:00
H. S. Teoh
4501f5520a
Add unittest.
2017-08-10 10:19:18 -07:00
H. S. Teoh
be9ad6a311
Fix issue 17661: isInputRange should work with .front that returns reference to parameter.
2017-08-09 17:03:47 -07:00