Commit graph

543 commits

Author SHA1 Message Date
k-hara
6f80f6aa03 Add more local imports 2014-03-13 13:13:04 +09:00
monarch dodra
9231bdd0b3 Tweak map's save
Not only does it avoid opAssign issues, but the final code is simpler anyways.
2014-03-12 11:53:21 +01:00
Geod24
4ed10be8bc Fix issue 12183 : Avoid using floating point in std.algorithm.sort.
- Prevent valgrind from aborting (some x87 FP operation are not supported).
- Can be slower on machines that have a soft floating point ABI.
2014-03-11 10:58:29 -07:00
Yazan S. Dabain
b8c29046f8 [Trivial] Fix documentation typos in std.algorithm 2014-02-28 10:37:44 +02:00
monarch dodra
4d16df5a73 Add sum to std.algorithm's TOC 2014-02-27 10:05:51 +01:00
monarch dodra
920d8c7651 Fixup sum documentation 2014-02-26 11:09:24 +01:00
monarchdodra
e5c10ca4ab Fix issue 12169 - sum(int[]) should return a int 2014-02-25 21:07:44 +01:00
Daniel Murphy
4d0892baba Remove uses of the comma operator 2014-02-18 00:48:40 +11:00
monarchdodra
9ba09aa59c change emplace for emplaceRef in algorithm 2014-02-16 17:04:34 +01:00
monarchdodra
95152081f3 swap isAssignable and !hasElaborateAssign 2014-02-16 17:04:34 +01:00
monarch dodra
acdb1d0a9a Merge pull request #1205 from andralex/4725
Fix Issue 4725 - std.algorithm.sum()
2014-02-15 08:20:01 +01:00
Andrej Mitrovic
4aab80ef53 Merge pull request #1461 from monarchdodra/issue10039
Fix Issue 10039 - std.algorithm enhancements: min, max, clamp
2014-02-14 22:27:05 +01:00
monarchdodra
01ef8978c2 Improve min/max recursion 2014-02-14 19:55:25 +01:00
Peter Alexander
cef8d54a7b Fix Issue 5753 - Disallow map with void function.
https://d.puremagic.com/issues/show_bug.cgi?id=5753
2014-02-12 18:49:40 +00:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
monarchdodra
9d33fb078d Coverage for minCount 2014-02-09 20:37:15 +01:00
Andrej Mitrovic
490d34d1e8 Merge pull request #1905 from CyberShadow/std-algorithm-docs
std.algorithm: Documentation fixes
2014-02-03 10:09:39 -08:00
Vladimir Panteleev
b757dcea75 std.algorithm: Add missing entries to module documentation summary 2014-02-03 17:25:47 +00:00
Vladimir Panteleev
5529d8205a std.algorithm: Fix alphabetical order of declarations 2014-02-03 17:25:47 +00:00
Vladimir Panteleev
bb0ee5ffef std.algorithm: Link to top-level symbols
Fixes ambiguous link to "remove".
2014-02-03 17:25:46 +00:00
k-hara
c68cb5dc6c Move isBlitAssignable to std.traits 2014-01-31 13:07:33 +09:00
k-hara
4dd0668f60 Fix union case 2014-01-31 13:07:31 +09:00
k-hara
2d32c78af4 fix Issue 12024 - template instantiation for swap(SysTime, SysTime) fails 2014-01-31 13:07:28 +09:00
Robert burner Schadek
c0032f9e2f examples of algorithm usage 2014-01-28 16:01:00 +01:00
Andrei Alexandrescu
637bd45413 pairwise sum returns double for ranges with float elements 2014-01-25 14:42:37 -08:00
Andrei Alexandrescu
7783916096 Added LREF to sum in reduce 2014-01-25 14:00:59 -08:00
Andrei Alexandrescu
ed36e854ef Document use of Kahan vs. vanilla summation 2014-01-25 14:00:59 -08:00
Andrei Alexandrescu
1564671ace Fix Issue 4725 - std.algorithm.sum() 2014-01-25 14:00:59 -08:00
Andrei Alexandrescu
bcf2be7b9c Merge pull request #1878 from WalterBright/fix11973
fix Issue 11973 - Please use any instead
2014-01-24 23:26:33 -08:00
Walter Bright
7e458cc432 fix Issue 11973 - Please use any instead 2014-01-23 23:38:48 -08:00
Daniel Murphy
a656f26e9e Remove use of automatic adjacent string literal concatenation from phobos 2014-01-20 03:42:21 +11:00
Andrei Alexandrescu
6732bbb835 Merge pull request #1858 from CyberShadow/std-aglorithm-sort-nonassignable
std.algorithm: Remove the hasAssignableElements restriction from HeapSortImpl
2014-01-16 09:35:54 -08:00
Vladimir Panteleev
4e6e09c568 std.algorithm: Add test for sorting via proxySwap 2014-01-14 20:00:42 +00:00
Vladimir Panteleev
9e14a1f6ef std.algorithm: Allow proxySwap-using swap overload to take by ref 2014-01-14 20:00:41 +00:00
Brad Anderson
6e75a548b4 Add notes to Splitter docs 2014-01-14 12:26:47 -07:00
Vladimir Panteleev
2e317d0c5d std.algorithm: Fix the hasAssignableElements restriction from HeapSort
This restriction seems unnecessary (as HeapSortImpl uses swap/swapAt,
which does not require assignability), and was getting in the way of
e.g. sorting a range of Refs. The range can satisfy either
hasAssignableElements, or hasSwappableElements
2014-01-14 14:36:27 +00:00
monarchdodra
fd8540072d Remove trailing white 2014-01-08 08:30:28 +01:00
Andrej Mitrovic
70bea62290 Merge pull request #1819 from monarchdodra/equalEqual
fix Issue 11403 - functions in std.algo can't be used as pred
2014-01-06 08:03:55 -08:00
Rainer Schuetze
60cf6a5577 moved import std.utf : canSearchInCodeUnits; in std.algorithm.find 2014-01-03 22:10:25 +01:00
monarchdodra
190b8190d4 fix Issue 11403 - functions in std.algo can't be used as pred 2014-01-02 09:18:46 +01:00
monarchdodra
5d583483e3 fix Issue 11853 - Tuples fail "isAssignable" 2013-12-31 17:17:32 +01:00
Andrei Alexandrescu
06352bc88f Fix Issue 6730 2013-12-29 14:26:32 -08:00
monarch dodra
97d3f75370 Merge pull request #1822 from GassaFM/master
fix documentation for nextPermutation and nextEvenPermutation
2013-12-29 11:30:33 -08:00
Andrei Alexandrescu
6c6c40f299 Merge pull request #1801 from monarchdodra/setIntersection
rework setIntersection
2013-12-29 07:40:46 -08:00
Ivan Kazmenko
23d052ace9 fix documentation for nextPermutation and nextEvenPermutation 2013-12-29 15:54:32 +04:00
monarchdodra
766f5512a5 rework setIntersection 2013-12-28 21:58:29 +01:00
monarchdodra
1fbfd9f465 fix Issue 11798 - std.algorithm.all with no predicate too 2013-12-27 10:28:51 +01:00
k-hara
1f42c9b01b Remove unnecessary imports 2013-12-26 11:55:24 +09:00
k-hara
ba1235c3ac Fix mistaken imports 2013-12-26 11:55:21 +09:00
k-hara
6628a306cf Add more necessary local imports 2013-12-26 11:55:18 +09:00