Commit graph

516 commits

Author SHA1 Message Date
Sebastian Wilzbach
2267cf2620 makeIndex: fix special case for uint 2017-07-07 14:37:50 +02:00
Martin Nowak
54bda1e5bc fix Issue 17616 - makeIndex cannot fully use range of index type 2017-07-07 14:13:48 +02:00
H. S. Teoh
8b4dc6c7b4 Improve docs for std.algorithm.remove.
Rationale: the most common use for this function is to remove an element
from an array. Therefore, the first example the user should see in the
docs is how to achieve this.  All the rest of the complications, like
`remove` not changing the length of the array and what-not, should be
discussed *afterwards*, not smack in the user's face.  The current first
example is a poor choice for a first example from a user's POV, because
it throws a complicated case out there without first telling the reader
(presumably someone new to the language, since seasoned D coders
wouldn't be needing to read the docs for `remove`) how to accomplish the
simplest, and most common, use case.
2017-07-05 10:34:45 -07:00
Sebastian Wilzbach
5facd9b674 Remove unused label 2017-06-19 13:37:55 +02:00
The Dlang Bot
857fdc1312 Merge pull request #5486 from wilzbach/fix-ddoc
Fix invalid undefined Ddoc macros
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-06-15 17:39:23 +02:00
Sebastian Wilzbach
e7111d4fd0 Fix invalid undefined Ddoc macros 2017-06-15 11:00:47 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
2070d867dd Sort multiple packages within one line 2017-06-12 08:18:25 +02:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Jack Stouffer
b5ffc889ca Remove debug writelns 2017-06-01 11:13:04 -04:00
The Dlang Bot
4b727ed11d Merge pull request #5326 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-05-30 01:02:05 +02:00
The Dlang Bot
bd80096e44 Merge pull request #5422 from JackStouffer/endsWith-decoding
Removed auto-decoding from the single needle version of endsWith
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-05-25 21:53:15 +02:00
Jack Stouffer
825ad38183 Removed auto-decoding from the single needle version of endsWith 2017-05-24 09:27:41 -04:00
Jack Stouffer
99659e6076 Removed unnessesary auto-decoding from the single argument version of startsWith 2017-05-24 09:14:31 -04:00
Martin Nowak
b940d0c1c7 Merge remote-tracking branch 'upstream/stable' into merge_stable 2017-05-23 20:37:35 +02:00
Sebastian Wilzbach
c6f694d633 Revert "[Static if] replace overload constraints with static if (mutation.d)" 2017-05-19 12:03:54 +02:00
Andrei Alexandrescu
0e441a9d9e Fix Issue 16326 - filter is not lazy enough & has weird save behavior 2017-05-14 08:58:18 -04:00
The Dlang Bot
355936643a Merge pull request #5149 from wilzbach/static_if_mutation
[Static if] replace overload constraints with static if (mutation.d)
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-05-12 21:22:59 +02:00
Sebastian Wilzbach
c6819e2d6e [Static if] replace overload constraints with static if (mutation.d) 2017-05-12 15:05:23 +02:00
Vladimir Panteleev
113502af74 std.algorithm.iteration: Add test for issue 17264
Fixes Issue 17264 - [REG2.073] uniq fails with const elements
2017-05-10 22:33:24 +00:00
Vladimir Panteleev
1e61c5cb6e Revert "Merge pull request #4961 from edi33416/uniq_consistency"
This reverts commit 428217b317, reversing
changes made to 7c2dc1ccba.
2017-05-10 22:33:24 +00:00
Jonathan M Davis
07fddbb388 Move deprecations along. 2017-05-07 11:27:48 +02:00
The Dlang Bot
57a0bf930a Merge pull request #5148 from wilzbach/static_if_iteration
[Static if] replace overload constraints with static if (iteration.d)
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-03-16 21:24:23 +01:00
Dmitry Olshansky
54da39a2df Make std.algo.copy CTFE-able 2017-03-16 16:58:26 +01:00
The Dlang Bot
c6aa7b8ada Merge pull request #5128 from BBasile/issue-16342
fix issue 16342 - add std.algorithm.mutation.fill fallback for mutable strings
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-03-13 19:21:12 +01:00
Jack Stouffer
1bcba2a993 Merge pull request #5213 from wilzbach/make-std-algorithm-table-more-digestable
Issue 17232 - make std.algorithm table more digestable
2017-03-07 15:56:33 -05:00
The Dlang Bot
8146e88326 Merge pull request #5210 from wilzbach/std-algorithm-disable-quick-index
std.algorithm: remove quickIndex, fix outdated book tables & HTML links
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-03 15:35:24 +01:00
Sebastian Wilzbach
169c82c938 std.algorithm.searching: no mapping-specialization for extremum (#5001)
std.algorithm.searching: no mapping-specialization for extremum
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-03 05:00:49 +01:00
Sebastian Wilzbach
7bd4c60c0c Merge pull request #5227 from wilzbach/fold-walkBack
walkBack follow-up: Mention fold's potential in the examples
2017-03-02 02:52:05 +01:00
Sebastian Wilzbach
0f7952c4d8 walkBack follow-up: Mention fold's potential in the examples 2017-03-02 02:24:00 +01:00
Jack Stouffer
e554764c01 Merge pull request #5216 from wilzbach/unluckily-phobos
Replace LUCKY links with actual links
2017-03-01 15:17:19 -05:00
Jack Stouffer
f6b25d2d5a Merge pull request #5180 from JackStouffer/algorithm-cruft
Remove unused debug writelns in std.algorithm
2017-03-01 11:22:55 -05:00
Sebastian Wilzbach
3817d6f37d Check public functions for public examples (#4998)
Check public functions for public examples
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-01 15:49:15 +01:00
Jack Stouffer
2e90b8ba16 Remove unused debug writelns in std.algorithm 2017-03-01 09:47:27 -05:00
Sebastian Wilzbach
b3bf38e6d6 std.algorithm: remove quickIndex, fix outdated book tables & HTML links 2017-03-01 03:59:48 +01:00
Sebastian Wilzbach
6153116b03 Merge pull request #5202 from wilzbach/derandomize-std-algorithm
Derandomize std.algorithm
2017-03-01 03:46:43 +01:00
Sebastian Wilzbach
b46bd2951f Derandomize std.algorithm.sorting 2017-03-01 03:04:00 +01:00
Basile Burg
bab801c672
fix issue 16342 - add std.algorithm.mutation.fill fallback for mutable strings 2017-03-01 01:50:55 +01:00
Sebastian Wilzbach
d548e8830a Replace LUCKY links with actual links 2017-02-28 23:46:54 +01:00
Sebastian Wilzbach
9c52725756 [SQUASH] add setops ref in parentheses 2017-02-28 22:56:22 +01:00
Sebastian Wilzbach
ee1e261992 std.algorithm.searching: move takeWhile line to the current definition 2017-02-28 21:48:38 +01:00
Sebastian Wilzbach
bc7d20a638 Issue 17232 - make std.algorithm table more digestable 2017-02-28 17:32:51 +01:00
Jack Stouffer
f2b5834172 Linked to the definition of forward and bidirectional ranges where they're mentioned in std.algorithm 2017-02-26 11:44:55 -05:00
Sebastian Wilzbach
b8a88558a9 Fix Ddoc warnings 2017-02-26 09:33:14 +01:00
Jack Stouffer
7d4ac19030 Linked to the definition of input ranges where they're mentioned 2017-02-25 19:18:54 -05:00
Jack Stouffer
4ce5d44dbb Use underscores for number literals with five or more digits 2017-02-23 09:45:49 -05:00
Sebastian Wilzbach
203755d296 Automatically add spaces to binary operators (>>)
command:

sed -E "s/([[:alnum:]]) >> ([[:alnum:]])/\1 >> \2/g" -i **/*.d
sed -E "s/([[:alnum:]])>> ([[:alnum:]])/\1 >> \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) >>([[:alnum:]])/\1 >> \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
ef7be4b60d Automatically add spaces to binary operators (<<)
command:

sed -E "s/([[:alnum:]]) << ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]])<< ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) <<([[:alnum:]])/\1 << \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
d905ef53b1 Automatically add spaces to binary operators (<=)
command:

sed -E "s/([[:alnum:]]) <= ([[:alnum:]])/\1 <= \2/g" -i **/*.d
sed -E "s/([[:alnum:]])<= ([[:alnum:]])/\1 <= \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) <=([[:alnum:]])/\1 <= \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00