Commit graph

894 commits

Author SHA1 Message Date
Sebastian Wilzbach
3f0db27026 add std.algorithm.sorting {ordered,strictlyOrdered} to std.algorithm booktable 2016-03-29 21:30:25 +03:00
Sebastian Wilzbach
1acba2b257 Suggest bracket-free template syntax in the doc of std.algorithm 2016-03-29 19:32:11 +03:00
Nick Treleaven
00032f65ad Improve docs for std.algorithm.mutation.move & related functions
Clarify that `move` doesn't always do a destructive copy.
Improve std.algorithm.mutation.move, moveEmplace examples.
Make moveAll, moveSome description easier to read.
Fix parameter name typos source -> src, tgt.
2016-03-29 12:35:04 +01:00
John Colvin
678a511ff2 faster pairwise summation 2016-03-24 13:14:42 +00:00
Sebastian Wilzbach
540ff4576f std.algorithm.sorting: fix - save reference in isSorted 2016-03-23 16:01:51 +02:00
Dmitry Olshansky
1b4100d63f Revert "Merge pull request #4025 from greenify/is_strictly_sorted"
This reverts commit 1f00853513, reversing
changes made to 580d72f3b3.
2016-03-21 21:10:38 +03:00
Dmitry Olshansky
1f00853513 Merge pull request #4025 from greenify/is_strictly_sorted
add isStrictlySorted for ranges
2016-03-21 15:24:30 +03:00
Brian Schott
f63523b1a8 Merge pull request #4065 from tsbockman/pr3969_fixup
Fixup for PR#3969
2016-03-18 16:58:13 -07:00
Sebastian Wilzbach
3209fe0bfb add isStrictlySorted for ranges 2016-03-14 20:34:33 +02:00
H. S. Teoh
5dc9102d67 Merge pull request #3913 from JakobOvrum/std_algorithm_table_either
Tweak std.algorithm.comparison.either docs and add to package doc table
2016-03-09 13:40:34 -08:00
H. S. Teoh
afc40287e0 Merge pull request #4066 from greenify/examples_to_unittest_setops
convert docstring examples to unittests [setops]
2016-03-09 12:17:37 -08:00
Sebastian Wilzbach
ce79561214 convert docstring examples to unittests 2016-03-08 14:54:55 +02:00
tsbockman
6c8333627c Fix map() to work with multi-module overload sets.
Verify return values for multiple lambda unittest.
2016-03-07 12:48:06 -08:00
Jakob Øvrum
22a90f904e Tweak std.algorithm.comparison.either docs and add to package doc table 2016-03-06 22:45:06 +09:00
Atila Neves
9cc2a5ae59 Replace 'reduce' with 'fold' in the documentation 2016-03-05 18:50:11 +01:00
Atila Neves
5d0ff1e1e5 Introduce "fold" as an alternative to "reduce" 2016-02-26 18:36:34 +01:00
Robert Schadek
5e5a8010ef Merge pull request #4004 from quickfur/cache-ddoc
[doc only] Improve ddoc for std.algorithm.iteration.cache
2016-02-25 12:46:09 +01:00
Per Nordlöw
74deecc374 Update searching.d
Tag code with D ddoc tag.
2016-02-24 16:23:01 +01:00
Steven Schveighoffer
b0acb7a394 Fix remaining import deprecation messages 2016-02-22 16:03:12 -05:00
H. S. Teoh
5bb30cc23c Fix broken links and missing ddoc identifier escapes. 2016-02-15 08:08:35 -08:00
Basile Burg
c871ab44cc fixed issue 15683 2016-02-15 06:08:07 +01:00
Robert Schadek
c548dbfbb4 Merge pull request #3987 from quickfur/schwartzSort-doc
Improve schwartzSort documentation.
2016-02-12 18:53:03 +01:00
H. S. Teoh
ba10d5c3a0 Improve schwartzSort documentation. 2016-02-11 14:00:27 -08:00
Jonathan M Davis
c3cd933131 Moving deprecations along.
This is mostly just putting dates on existing deprecations that were
missing dates, but it does remove a few things that have been deprecated
long enough to be removed.
2016-02-10 16:43:25 -08:00
tsbockman
b23608b635 Fix Phobos issue 15480 2016-02-04 12:01:36 -08:00
Jonathan M Davis
747135d6d6 Merge pull request #3954 from quickfur/canfind_docs
Add example of how to use a custom predicate with canFind.
2016-02-02 04:38:40 -08:00
H. S. Teoh
02c0083e1c Merge pull request #3942 from andralex/maxPos
Add maxCount and maxPos
2016-01-27 21:18:43 -08:00
H. S. Teoh
6a98d6ba03 Better variable naming. 2016-01-26 16:47:43 -08:00
H. S. Teoh
5517fe1bcd Add example of how to use a custom predicate. 2016-01-26 15:52:45 -08:00
Martin Nowak
581574e449 Merge pull request #3935 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2016-01-25 01:43:05 +01:00
Andrei Alexandrescu
eba4817874 Add maxCount and maxPos 2016-01-20 12:12:41 -05:00
Per Nordlöw
f7f48475f2 Review updates 2016-01-18 12:45:01 +01:00
Per Nordlöw
bfebdc7ecc Add alternative commenting 2016-01-17 21:21:39 +01:00
Per Nordlöw
0b934852c3 Add unary overloads for startsWith and endsWith 2016-01-17 21:21:39 +01:00
Martin Nowak
10d1dc4a5b Merge remote-tracking branch 'upstream/stable' into merge_stable 2016-01-17 20:36:06 +01:00
Ilya Yaroshenko
7f24ccfeb5 Merge pull request #3933 from andralex/heap
Faster heap operations
2016-01-16 21:42:40 -08:00
Andrei Alexandrescu
731e47e242 Merge pull request #3800 from JackStouffer/lambda
Removed string predicates from std.algorithm.iteration documentation
2016-01-15 20:32:40 -05:00
Andrei Alexandrescu
01bdccf310 Improved siftDown and percolate, also documented both 2016-01-15 17:24:49 -05:00
Andrei Alexandrescu
96ece512a2 Use member syntax for swapAt to give the range a chance to intercept it 2016-01-15 12:26:05 -05:00
Andrei Alexandrescu
c12573a337 Faster heap operations 2016-01-15 11:25:28 -05:00
Andrei Alexandrescu
f259c22987 topN: define behavior for nth >= r.length, improve speed 2016-01-14 23:58:51 -05:00
Ilya Yaroshenko
10da3381c1 Merge pull request #3921 from andralex/15553
Fix Issue 15553 - topN very inefficient [slower than sort, even for topN(0)] but should be O(n)
2016-01-13 10:07:11 -08:00
Andrei Alexandrescu
718208dfc5 Merge pull request #3846 from aG0aep6G/TypeInfo.initializer
TypeInfo.init -> TypeInfo.initializer
2016-01-12 11:40:47 -05:00
Andrei Alexandrescu
47259a4267 Merge pull request #3923 from JakobOvrum/tls_in_reduce
Remove TLS variables from ReduceSeedType
2016-01-12 00:30:00 -05:00
Jakob Øvrum
c06c1e5a17 Remove TLS variables from ReduceSeedType 2016-01-12 12:40:23 +09:00
Andrei Alexandrescu
a505de3b51 Always return range.save 2016-01-11 13:32:30 -05:00
Andrei Alexandrescu
d95d96f05d No need to test if range is empty in minPos 2016-01-11 13:05:35 -05:00
Andrei Alexandrescu
19288618af Bug fix: swap must happen 2016-01-11 13:03:10 -05:00
Andrei Alexandrescu
06cb165a47 Improve performance of partition 2016-01-11 12:25:29 -05:00
Andrei Alexandrescu
9c7f0dabc3 Actually the pivot must be swapped back, but only upon success 2016-01-11 12:03:40 -05:00