Commit graph

216 commits

Author SHA1 Message Date
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
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
Andrei Alexandrescu
721fcb40ed Fix https://issues.dlang.org/show_bug.cgi?id=15553 2016-01-11 11:32:14 -05:00
Jack Stouffer
4013498c9e Fixed template constraint in topN 2016-01-09 11:36:20 -05:00
Jakob Øvrum
79ac418680 Mention "flatten" in docs for std.algorithm.iteration.joiner 2016-01-08 02:41:17 +01:00
Jack Applegame
1cdec1f5be fix remove docs 2016-01-03 23:58:37 +03:00
Jonathan M Davis
0899d9403f Move deprecations along.
This includes deprecating std.c.*, which apparently was marked as
scheduled for deprecation in 2.068 but never actually deprecated (though
it looks like it was previously removed from the documentation build,
since it doesn't show up on dlang.org).
2015-12-30 00:18:53 -08:00
Andrei Alexandrescu
7a06e21cc7 Merge pull request #3879 from blm768/adjust_examples
Changed "Examples:" in Ddoc to "Example:"
2015-12-26 09:21:38 -05:00
JakobOvrum
71f5e1a281 Merge pull request #3866 from Infiltrator/patch-1
Fix mistakes in pull #3864
2015-12-18 17:09:47 +09:00
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
H. S. Teoh
64f43ce42c Merge pull request #3854 from 9rnsr/enforceProp
fix property enforcement
2015-12-15 09:37:12 -08:00
Infiltrator
73a74374e2 Fix mistakes in pull #3864
Bug unittests should go in their own blocks.
2015-12-10 17:31:41 +11:00
Infiltrator
d70356e019 Fix topN(Range, Range) disrespect of its predicate 2015-12-10 17:29:34 +11:00
Infiltrator
865afe1b39 Update topN functions to return their top ranges 2015-12-08 19:21:46 +11:00
k-hara
e864e53adc fix property enforcement 2015-12-04 15:42:53 +09:00
Jack Stouffer
a1b9d5dd1a removed string preds from std.algorithm.iteration 2015-12-02 15:44:56 -05:00
anonymous
933aa8e30d TypeInfo.init -> TypeInfo.initializer 2015-11-30 21:20:46 +01:00
Vladimir Panteleev
e90be60a67 Merge pull request #3839 from aG0aep6G/ddlink
use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
2015-11-27 04:54:52 +02:00
Jonathan M Davis
7afe668428 Merge pull request #3807 from dcarp/Fix15320
[Issue 15320] eliminate 'static assert(__traits(compiles,..'
2015-11-26 17:57:44 -08:00
anonymous
6832caf0be use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
DDLINK/DDSUBLINK use ROOT_DIR which is more robust than a relative path.
2015-11-26 16:04:44 +01:00
anonymous
1c8467c676 update links to spec pages 2015-11-24 17:58:49 +01:00
Dragos Carp
75cbbef0ab Add asserts for the "compiles" tests 2015-11-16 03:04:07 +01:00
Dragos Carp
eb293b5063 Fix issue 15320 2015-11-13 03:45:29 +01:00
Andrei Alexandrescu
168d96dfd7 Merge pull request #3395 from nordlow/either-and-every
Add new algorithm: either()
2015-10-29 16:57:59 -04:00
Per Nordlöw
c46a463628 Add algorithm either() and trait allSatisfy() 2015-10-29 21:11:05 +01:00
Andrei Alexandrescu
b6a61d9e71 Merge pull request #3288 from nordlow/struct-returned-findSplit
Struct Returned findSplit*() with implicit bool conversion
2015-10-29 14:37:39 -04:00
Martin Nowak
0e95f6723a Merge remote-tracking branch 'upstream/stable' into merge_stable 2015-10-27 15:55:59 +01:00
Martin Nowak
0a9f9ccc3e fixup for string-like overloads
- undocument overloads for aliased/static strings
- make std.traits helpers phobos internal
- rename isStringLike to isConvertibleToString for clearer documentation
- rename peelStringLike to convertToString
- fix a few staticMap!(selectString) uses in std.path
2015-10-26 19:50:08 +01:00
Martin Nowak
f8af54dce7 fix levenshteinDistance for string-like types 2015-10-25 19:06:01 +01:00
Steven Schveighoffer
325715024d Merge pull request #3717 from MartinNowak/fixFlag
fix casing for Flag name
2015-10-22 10:20:08 -04:00