Commit graph

391 commits

Author SHA1 Message Date
Nathan Sashihara
a5b69d5487 Fix Issue 18524 - std.range.Zip.moveBack instead performs moveFront 2018-02-26 07:40:28 -05:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Sebastian Wilzbach
d9830b739e Fix DScanner warnings 2018-02-10 22:46:32 +01:00
The Dlang Bot
3a9a8b8c3f
Merge pull request #6119 from wilzbach/slide-docs
Move public examples of slides, s.t. they can be detected by ddoc
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-04 02:26:38 +01:00
Sebastian Wilzbach
425c02a82f Move public examples of slides, s.t. they can be detected by ddoc 2018-02-04 00:21:22 +01:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Sebastian Wilzbach
7fb3d4249f Remove references to STL 2018-01-30 16:08:20 +01:00
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