k-hara
6579c574bb
fix Issue 14904 - bad error message in reduce: 'Incompatible function/seed/element'
...
The verbose message is shown only when the given `fun` is actually valid.
2015-08-25 13:38:24 +09:00
H. S. Teoh
17e240b051
Fix typo in chunkBy cheatsheet.
2015-08-20 10:33:36 -07:00
H. S. Teoh
03eac95230
Add missing cheatsheet links for ordered and strictlyOrdered.
2015-08-19 22:21:20 -07:00
vladdeSV
9097c7bc0b
assert message is converted to string
2015-08-10 17:47:41 +02:00
Luís Marques
4b7976bc27
Fix Issue 14884
2015-08-10 14:55:21 +01:00
Luís Marques
3730d77c04
Fix issue 14880
2015-08-10 14:38:22 +01:00
Dmitry Olshansky
94f718e5c6
Merge pull request #3531 from MartinNowak/moveAllAssert
...
use assert instead of enforce for moveAll
2015-08-07 17:23:44 +03:00
Martin Nowak
901908ec7f
remove workaround for invalid bug 14878
...
- have to use `(T t) @safe {}`
- turns out that T in `(T) @safe {}` is the parameter
name of a polymorphic lambda not the parameter type
of a function literal
2015-08-07 01:03:22 +02:00
Martin Nowak
81ca4a8cc5
use assert instead of enforce for moveAll
...
- it's a programming error to call the function w/o
knowing if tgt can accomodate all of src
- for cases where it cannot be known in advance
there is moveSome which will stop when either
range is exhausted
- allows to make moveAll nothrow @nogc depending
on the destructor of T
2015-08-07 00:30:48 +02:00
Martin Nowak
3ccea802ba
test moveAll with input range
2015-08-06 13:38:31 +02:00
Martin Nowak
d4d301b35c
add moveEmplaceAll and moveEmplaceSome variant
...
- similar to their moveAll and moveSome counterparts
but assume that target is an uninitialized range
2015-08-06 13:30:10 +02:00
Martin Nowak
980351894b
make move and moveEmplace attribute correct
...
- moveEmplace is unsafe (@system)
- move inherits attributes from T's destructor
2015-08-06 13:30:10 +02:00
Martin Nowak
aefe7e5557
implement moveEmplace
...
- combined move and emplace
- moves a value and emplaces it into an
uninitialized value of the same type
- more efficient than init + move
2015-08-06 11:58:31 +02:00
Ivan Timokhin
6f1d4fe324
Mention new function in sort docs
2015-07-16 11:58:29 +03:00
Dmitry Olshansky
30e4ff1717
Merge pull request #3479 from Xinok/issue12966
...
Fix Issue 12966 - Optimization for BinaryHeap
2015-07-13 01:06:54 +03:00
Dmitry Olshansky
6a595fbd73
Merge pull request #3482 from CyberShadow/pull-20150710-071447
...
std.algorithm.iteration: Add permutations
2015-07-12 10:30:42 +03:00
Vladimir Panteleev
6079e23d82
std.algorithm.iteration: Add permutations (fix issue 13596)
2015-07-12 03:38:49 +00:00
Dmitry Olshansky
5d17edc745
Merge pull request #2799 from Poita/Issue13650
...
Fix Issue 13650 - Cannot copy (w)char[] into (w)char[]
2015-07-10 22:32:58 +03:00
Xinok
08f0b242d5
Fix for instantiating BinaryHeap!(Array!int))
2015-07-08 15:10:11 -05:00
Xinok
d52fb87ce7
Remove trailing space...
2015-07-08 11:23:59 -05:00
Xinok
b97a6c2e7e
Migrate some heap operations to std.algorithm
2015-07-08 11:18:01 -05:00
k-hara
4ceb3ab159
Supplemental fix for issue 14747 - remove unreachable statements
2015-07-01 00:08:20 +09:00
Peter Alexander
1f0f8ef772
Fix Issue 13650 - Rebased
2015-06-29 22:17:09 +01:00
Vladimir Panteleev
4d5894b042
std.algorithm.sorting: Remove dead YouTube link from schwartzSort DDoc
...
IIRC, this was some sort of joke.
2015-06-29 19:34:27 +00:00
Vladimir Panteleev
ddec2b8c7b
std.algorithm.sorting: Remove dead YouTube link from schwartzSort DDoc
...
IIRC, this was some sort of joke.
2015-06-24 11:11:26 +00:00
anonymous
b28962635f
fix package XREFs
...
Also add escaping underscores in some places, and rewrap to 80 columns
where touching anyway.
2015-06-15 22:30:41 +02:00
Robert burner Schadek
c49a81e627
updates alias syntax inside algo comp
...
remove extra space
2015-05-28 19:35:46 +02:00
Martin Nowak
2e5cf6b9ca
remove groupBy
...
- accidentally added in 2.067.0
- replaced by compat alias to chunkBy in 2.067.1
2015-05-26 00:32:35 +02:00
Martin Nowak
28b1e54c53
Merge pull request #3226 from MartinNowak/merge_stable
...
Merge branch 'stable' into merge_stable
2015-05-18 17:13:14 +02:00
Walter Bright
d9a9826e55
Revert "Introducing std.meta package"
2015-05-06 14:36:45 -07:00
Dicebot
7970fcc748
Don't use fqn for any/all
...
In most cases it resolves unambiguosly
2015-05-05 22:22:11 +03:00
Dicebot
a76d90c927
Phobos should only mention tuple as std.typecons.Tuple
2015-05-05 22:22:11 +03:00
Dicebot
1c9ae027ef
Rename old std.typetuple symbols inside Phobos
...
staticIndexOf -> indexOf
allSatisfy -> all
anySatisfy -> any
staticMap -> Map
2015-05-05 22:22:11 +03:00
Dicebot
82f54a38d3
TypeTuple -> MetaList inside Phobos
2015-05-05 22:22:11 +03:00
Dicebot
73f773838d
import std.typetuple -> import std.meta
2015-05-05 22:22:10 +03:00
Doado
a4d997273b
Added function multiSort to cheat sheet of std.algorithm.sorting.
...
Added function multiSort to cheat sheet of std.algorithm.sorting
2015-04-27 11:24:01 +01:00
Martin Nowak
ec77b252b0
Merge branch 'stable' into merge_stable
2015-04-25 16:51:50 +02:00
JakobOvrum
f7498ad8ec
Merge pull request #3171 from MartinNowak/refCounted
...
fix Issue 14432 - move construction for RefCounted
2015-04-20 22:44:18 +09:00
Martin Nowak
1e19a4f713
use typeid(T).init() to reset moved value
2015-04-20 00:53:04 +02:00
Martin Nowak
41d1162619
Merge pull request #3112 from andralex/between
...
Testing whether a few given values are ordered
2015-04-19 22:04:42 +02:00
Martin Nowak
aa13382ba8
add deprecated alias groupBy = chunkBy;
...
- to not break code in a point release
2015-04-18 16:53:59 +02:00
H. S. Teoh
afd30b41b0
Merge pull request #3005 from Poita/Issue14183
...
Fix Issue 14183 - Changes to groupBy
2015-04-18 16:48:20 +02:00
Walter Bright
6793ca3207
remove gc allocation from std.algorithm.levenshteinDistance()
2015-04-10 16:03:41 -07:00
Jakob Ovrum
538c207180
Improve docs for std.algorithm.copy
2015-04-01 13:31:33 +09:00
Andrei Alexandrescu
d54047a6a0
Added strictlyOrdered
2015-03-26 21:14:52 -07:00
Andrei Alexandrescu
5ca24b8392
Introducing ordered()
2015-03-26 20:59:23 -07:00
David Nadlinger
ec62f933ab
Merge pull request #3068 from burner/algo_cmp_castSwitch
...
std.algo.cmp.castSwitch docu
2015-03-23 09:44:50 +01:00
Andrei Alexandrescu
37a88bfcf9
Merge pull request #3077 from burner/algo_cmp_max
...
std.algo.cmp.max docu
2015-03-22 22:54:08 -07:00
Andrei Alexandrescu
27fc16df0d
Merge pull request #3065 from burner/algorithm_comparision_dscanner_suggestions
...
algorithm_comparison maintenance
2015-03-22 22:53:07 -07:00
Robert burner Schadek
b720202687
std.algo.cmp.castSwitch
...
Params and Returns
fix
switch
review fix
a new try
2015-03-23 00:26:06 +01:00