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
Martin Nowak
1050e282d5
fix casing for Flag name
2015-10-22 14:58:54 +02:00
Martin Nowak
96bc6da667
missing docs for moveEmplace
2015-10-14 13:56:37 +02:00
Matt Kline
dae8f5e993
Mention lambda predicates in std.algorithm
2015-09-24 17:12:28 -07:00
Steven Schveighoffer
edc405cacd
Merge pull request #3649 from DmitryOlshansky/poita--issue14817
...
[REG master] Issue14817 std.algorithm.copy/std.file.copy conflict
2015-09-18 09:22:01 -04:00
Steven Schveighoffer
403947bede
Merge pull request #3574 from JackStouffer/issue12752
...
Fixed Issue 12752: std.algorithm.isPermutation
2015-09-17 16:29:44 -04:00
Jack Stouffer
6daa283986
fixed issue 12752
2015-09-17 13:03:09 -04:00
Peter Alexander
1e7246b201
Fix Issue 14817 - std.algorithm.copy/std.file.copy conflict
...
https://github.com/D-Programming-Language/phobos/pull/2799 introduced a regression, which prevented module that imported both std.algorithm and std.file to use unqualified calls to copy(string, string). The regression was caused by the removal of template constraints, which were preventing the std.algorithm copy from being considered for overload resolution.
std.algorithm.copy has two paths: an path for array copies, and a path for all other copies. Previously they were forked using static if inside function. Now the decision is made using template constraints.
2015-09-12 14:10:40 +03:00
H. S. Teoh
754a259c93
Add Params:, Returns:, to minPos().
2015-09-10 21:16:25 -07:00
H. S. Teoh
14bb8ad2f5
Add Params:, Returns:, to minCount().
2015-09-10 21:15:17 -07:00
Robert Schadek
e5c3d756eb
Merge pull request #3638 from quickfur/min_doc
...
[dox] Improve docs for std.algorithm.comparison.min
2015-09-10 12:22:41 +02:00
H. S. Teoh
4ac555c870
Add Params:, Returns:, to findSplitxx().
2015-09-09 21:21:45 -07:00
H. S. Teoh
89d9653f77
Add Params:, Returns: to count().
2015-09-09 20:48:48 -07:00
H. S. Teoh
44264b30d0
Add Params:, Returns: to balancedParens.
2015-09-09 20:37:45 -07:00
H. S. Teoh
6452bf89e6
Turn min() unittest into ddoc'd example.
2015-09-08 22:00:25 -07:00
H. S. Teoh
f827ffaa24
Add Params:, Returns: to std.algorithm.comparison.min.
2015-09-08 21:56:21 -07:00
Robert Schadek
7d1961a13d
Merge pull request #3630 from quickfur/setops_doc
...
[dox] Add Params, Returns, to std.algorithm.setops
2015-09-08 10:27:51 +02:00
Hara Kenji
bb7e5fb3cc
Merge pull request #3634 from MartinNowak/merge_stable
...
Merge remote-tracking branch 'upstream/stable' into merge_stable
2015-09-08 01:46:43 +09:00
H. S. Teoh
9534a996a7
Add Params: to completeSort().
...
Params: and Returns: for isSorted.
Params:, Returns:, for partition and isPartitioned.
Params: and Returns: for partition3.
Params: for makeIndex().
Add Params: and Returns: for various sorting functions.
Add Params: and Returns: to the topNxxx() functions.
Add Params:, Returns: to the nextPermutation functions.
2015-09-06 22:02:23 -07:00
Martin Nowak
18c5b270e0
Merge remote-tracking branch 'upstream/stable' into merge_stable
...
Conflicts:
std/internal/cstring.d
win64.mak
2015-09-07 00:44:29 +02:00
H. S. Teoh
9c2643b31e
Add Params:, Returns:, for setUnion.
2015-09-04 23:12:08 -07:00
H. S. Teoh
a86d838cba
Add Params, Returns, See_also, to setSymmetricDifference.
2015-09-04 23:09:56 -07:00
H. S. Teoh
a7cafe1334
Add Params:, Returns: to setIntersection.
2015-09-04 23:08:01 -07:00
H. S. Teoh
a5f56f5716
Add Params:, Returns:, See_also: for setDifference.
2015-09-04 23:05:08 -07:00
H. S. Teoh
7f261f7eb8
Add Params: and Returns: for nWayUnion.
2015-09-04 23:02:00 -07:00
H. S. Teoh
6f0fbeb7d7
Add Params: for largestPartialIntersection.
2015-09-04 22:58:41 -07:00
H. S. Teoh
7acb9eac80
Add Params: and Returns: to cartesianProduct docs.
2015-09-04 22:51:06 -07:00
Dmitry Olshansky
f2220c2139
Merge pull request #3022 from ivan-timokhin/totalOrder
...
Total ordering for floating-point values.
2015-09-02 12:39:55 +03:00
Dmitry Olshansky
09d5b511f4
Merge pull request #3528 from vladdeSV/format-return-correct-type
...
format() returns the correct type
2015-08-30 22:57:57 +03:00
Vladimir Panteleev
8f5a37f174
Merge pull request #3542 from luismarques/fix_issue_14884
...
Fix Issue 14884 - `among` docs broken link to `find` and `canFind`
2015-08-26 03:18:46 +00:00
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