Nathan Sashihara
7bfb207376
Fix Issue 19412 - std.algorithm.cmp with default ordering can use memcmp for all size 1 unsigned types
...
... instead of just char.
2019-03-08 19:52:21 -05:00
Vasniktel
8356511ffb
Fixed comparison bug ( #6888 )
...
Fixed comparison bug
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-03-08 12:50:24 +01:00
Walter Bright
eb8aed9728
adjust setops.cartesianProduct() for dip1000
2019-02-23 23:27:25 -08:00
Jon Degenhardt
02952b1c9f
Unit test covering std.group.save method
2019-02-01 23:19:42 -08:00
H. S. Teoh
3cf78da259
[dox] Cross-reference .merge and .multiwayMerge.
...
These two functions are related but play two different roles:
std.algorithm.sorting.merge takes a static number of ranges of possibly
disparate types (but compatible elements), and is useful for composing
ranges at compile-time. However, it cannot take a variable number of
ranges at runtime because all ranges must be statically known.
That latter role is played std.algorithm.setops.multiwayMerge, which
takes a range of ranges to merge, and so can merge a variable number of
ranges at runtime. However, because of that, it cannot merge ranges of
disparate types (of compatible elements), and so is unsuitable for
compile-time range composition, unless a workaround like the range class
interface is used.
The docs for these two functions really should cross-reference each
other so that users can more easily find the correct function for their
needs.
2019-02-01 00:13:15 +01:00
The Dlang Bot
7fe854347e
Merge pull request #6849 from quickfur/setdiff-typo
...
[Trivial] Fix typo in SetDifference docs.
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2019-01-31 19:40:07 +01:00
H. S. Teoh
2ccd983fd1
[Trivial] Fix typo in SetDifference docs.
2019-01-31 09:44:03 -08:00
Jon Degenhardt
b17984059e
Fix Issue 19532 - chunkBy errors involving non-forward input ranges
2019-01-26 23:58:03 -08:00
Martin Nowak
027740061f
Merge remote-tracking branch 'upstream/stable' into merge_stable
2019-01-02 02:44:36 +01:00
Sebastian Wilzbach
07ea0e0201
Merge pull request #6803 from edi33416/issue_19213
...
Fix Issue 19213 - goto skips declaration of variable in std.algorithm…
2018-12-31 12:53:01 +01:00
Eduard Staniloiu
6572e4abb3
Fix Issue 19213 - goto skips declaration of variable in std.algorithm.iteration.joiner
2018-12-20 16:40:55 +02:00
Eduard Staniloiu
a3fdf76c09
Fix Issue 18913 - Cannot move static array of non-copyable type
2018-12-19 16:04:06 +02:00
The Dlang Bot
d262d06a14
Merge pull request #6796 from carun/master
...
canFind: added example to search for multiple needles in a hay stack.
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-12-11 11:58:05 +01:00
Arun Chandrasekaran
744e15aed1
canFind: added example to search for multiple needles in an array of hay stacks.
2018-12-11 00:44:03 -08:00
Manu Evans
3ac8804df1
min/max shouldn't pull std.format
2018-12-10 01:03:28 -08:00
Nicholas Wilson
f953e2c311
Merge pull request #6607 from wilzbach/fix-13683
...
[RFC] Fix Issue 13683 - More precise error message for wrong lambda
2018-11-19 15:45:02 +08:00
Nicholas Wilson
4804e7d9c7
Merge pull request #6751 from dukc/emptySubstitute
...
Corrected initialization of empty substitute
2018-11-15 17:38:59 +08:00
Sebastian Wilzbach
887f7558e0
Fix Issue 13683 - More precise error message for wrong lambda
2018-11-15 15:05:03 +10:00
dukc
d95bc60dad
Fix Issue 18796 - Made substitute with multiple range elements correctly recognize empty base ranges
2018-11-15 15:00:58 +10:00
Robert Schadek
a05af05d95
nthPermutation ( #5068 )
...
add the function nthPermutation that permutates a given range in place n
permutations in O(1).
This is O(n - 1) steps faster than calling nextPermutation n times.
2018-11-12 19:33:28 +08:00
Mike Parker
e44a862811
Typo in REF macro parameter list in each doc.
...
`$(REF Flag, std.typecons)`!"each"` should have a comma between the package names, not a dot. It was causing the text to render as `std.typecons..Flag!"each"`.
2018-11-09 19:43:43 +09:00
Per Nordlöw
6b64ed9d57
Fix Issue 19366 - Qualify opCast(bool) as const for findSplit, findSplitBefore and findSplitAfter.
2018-11-05 10:48:27 -05:00
Martin Nowak
bf44bb571e
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-10-26 16:02:08 +02:00
The Dlang Bot
e2709ee1e8
Merge pull request #6700 from schveiguy/fixsplitter
...
Allow no-arg splitter function to work on ranges that aren't standard strings
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-10-19 15:50:54 +02:00
Steven Schveighoffer
f7154ec86a
Fix issue 19238 - Allow splitter on random-access ranges of characters that aren't
...
character arrays.
2018-10-18 11:05:57 -04:00
aG0aep6G
08f76c2974
Ddoc: fix botched backticks
2018-10-16 23:37:17 +02:00
Martin Nowak
95a1713806
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-10-05 17:26:18 +02:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Nathan Sashihara
947ba51707
Fix Issue 19236 - Replace runtime typeid(T).initializer().ptr is null
checks with compile-time __traits(isZeroInit, T)
2018-09-09 12:19:34 -04:00
John Colvin
82c73711a5
fix issue 19207
2018-08-30 11:58:43 +01:00
The Dlang Bot
f4aec67df5
Merge pull request #6645 from wilzbach/unittest-betterC
...
Allow @betterC tests in Phobos
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2018-08-22 15:39:19 +02:00
Sebastian Wilzbach
57d12560c5
Start to add @betterC to std.algorithm.comparison
2018-08-21 17:19:21 +02:00
Sebastian Wilzbach
eb6d449aa4
Fix dxml regression in multiple arguments skipOver
2018-08-20 14:05:54 +02:00
Andrei Alexandrescu
a12d990924
Merge pull request #5268 from andralex/each-with-early-stopping
...
Make `each` capable of early stopping
2018-08-15 19:12:17 -04:00
The Dlang Bot
1e3272746a
Merge pull request #6143 from wilzbach/skipOver
...
Fix Issue 12335 - std.algorithm.skipOver should support multiple args like startsWith
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-08-15 17:06:39 +02:00
Sebastian Wilzbach
6ef73fb360
Another merge
2018-08-15 15:05:16 +02:00
Sebastian Wilzbach
e1d37201f7
Fix early stopping PR
2018-08-15 11:06:43 +02:00
Andrei Alexandrescu
8ef426d772
More doc fixes
2018-08-15 11:06:43 +02:00
Andrei Alexandrescu
b803ffabd4
It's Yes...
2018-08-15 11:06:43 +02:00
Andrei Alexandrescu
662acd4cf6
Make each capable of early stopping
2018-08-15 11:06:43 +02:00
The Dlang Bot
bb769cfaf5
Merge pull request #4990 from wilzbach/fix-15357-each-foreach
...
Fix issue 17019: `each` should be usable with parallel (and behave like foreach)
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-08-14 21:19:55 +02:00
Sebastian Wilzbach
f67c43d93d
Merge pull request #6115 from wilzbach/13121
...
Issue 13121 - std.algorithm.joiner should return a bidirectional range if possible
2018-08-14 15:23:03 +02:00
Sebastian Wilzbach
3f44a4cd73
Fix issue 17019 - std.algorithm.iteration.each should be usable with parallel
2018-08-01 16:25:26 +02:00
Nathan Sashihara
5e90a60ebd
Make PR #6115 compatible with BlackEdder/ggplotd
2018-07-09 22:56:38 -04:00
Martin Nowak
13bfc065de
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-06-25 19:20:29 +02:00
aG0aep6G
0b8f203041
fix issue 19023 - findSplitBefore and findSplitAfter give wrong bool result
2018-06-24 23:00:00 +02:00
aG0aep6G
93faca7ed5
fix issue 19020 - findSkip, findSplit and findSplitBefore return wrong results
2018-06-24 22:49:55 +02:00
Brian Schott
1bb5636617
Fix typo.
2018-06-20 21:30:59 -07:00
Brian Schott
da9b10f859
Fix doc comment for pivotPartition
...
Looks like a search-and-replace messed up the code markup. Also, it seems like the range specified in the second list item was not consistent with its explanation.
2018-06-20 21:27:45 -07:00
The Dlang Bot
1d70525d00
Merge pull request #6485 from aG0aep6G/18804
...
fix issue 18804 - std.algorithm.mutation.copy puts whole source range…
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-06-19 00:34:14 +02:00