Commit graph

241 commits

Author SHA1 Message Date
Andrei Alexandrescu
6cc2408804 Merge pull request #768 from jmdavis/deprecations
September 2012 Deprecations
2012-10-06 21:49:52 -07:00
Andrei Alexandrescu
b2101fe8b5 Merge pull request #838 from monarchdodra/fillv
fill(value) reimplementation
2012-10-05 07:50:24 -07:00
monarch dodra
70923719ca fill(value) reimplementation 2012-10-05 17:19:19 +03:00
Andrei Alexandrescu
b22ce76be4 Fixed link to the other Schwartz in documentation 2012-10-03 15:03:55 -04:00
jmdavis
9f08095551 Undocumented the overload of canFind which was scheduled for deprecation.
It hasn't actually be deprecated, but it's now undocumented and marked
for possible deprecation in the future.
2012-09-30 04:19:49 -07:00
Andrei Alexandrescu
8d982c5686 Merge pull request #773 from ntrel/algorithm-eponymous-doc2
Show function signatures for eponymous templates in std.algorithm docs
2012-09-26 12:07:38 -07:00
Andrei Alexandrescu
1122af373b Merge pull request #750 from Panke/fix-8284
Fix bug #8284 by adding const opEquals to std.typecons.Tuple
2012-09-16 19:22:30 -07:00
Nick Treleaven
6ef6be178f Show function signatures for eponymous templates in std.algorithm docs 2012-09-04 15:47:02 +01:00
Nick Treleaven
cbf50c9542 Fix filter doc typos 2012-09-04 15:44:18 +01:00
Ellery Newcomer
e633725a23 pretty findSplit example 2012-08-20 13:19:03 -07:00
jmdavis
6eba82fb56 Slight tweak to static if in find.
The semantics are the same. It's just less redundant this way.
2012-08-19 21:19:36 -07:00
Andrei Alexandrescu
47204076d8 Merge pull request #720 from jmdavis/8334
Fix for issue# 8334: find cannot handle close match at end of haystack in needle isn't bi-directional
2012-08-19 21:00:27 -07:00
Tobias Pankrath
dc08c38fe1 clean indentation in std/algorithm.d 2012-08-16 18:46:53 +00:00
Tobias Pankrath
3c878f4b90 Fix bug #8284 by adding const opEquals to std.typecons.Tuple
To fix bug #8284 std.typecons.Tuple needs to have a const opEquals.
Adds also a testcase for std.algorithm using std.typecons.Tuple as
element type for std.container.Array.

This pull request needs a dmd with pull 1075 to fix issue 8522.
2012-08-14 08:52:25 +00:00
jmdavis
27912bb268 Fix for issue# 8334. 2012-08-12 20:57:10 -07:00
Andrei Alexandrescu
d823b4eb13 Merge pull request #731 from monarchdodra/algoSave2
Fixes in std algorithm
2012-08-05 20:14:21 -07:00
Andrei Alexandrescu
d67d2eaa66 Merge pull request #712 from jmdavis/canFind
Added overload for canFind which works with multiple needles.
2012-08-05 15:58:41 -07:00
Andrei Alexandrescu
8cddf7d176 Merge pull request #682 from jmdavis/swap
Workaround for bug# 4789 removed.
2012-08-05 15:38:02 -07:00
Jonathan M Davis
fc99e5583e Merge pull request #729 from andralex/bug8469
Added additional check to isSorted to detect invalid predicates
2012-08-04 18:47:06 -07:00
monarchdodra
d0457fe82a This test is actually needed
Adds "isSomeString" to map's "length" test.
2012-07-31 13:47:27 +03:00
monarchdodra
58fef77d02 Fixes in std algorithm
*Tuning of map for "length", "opIndex", "opSlice"
*Fill is more efficient, accepts infinite inpute length
*adjacentFind: Correctly saves
*minCount: Using value types (and not reference types). Throws on empty range
*minPos: Correcttly saves
*equal: More efficient implementation
2012-07-31 12:46:19 +03:00
Andrei Alexandrescu
3f6def1694 Added additional check to isSorted to detect invalid predicates 2012-07-30 18:19:39 -04:00
k-hara
cedddcd23e fix Issue 5939 - Cannot copy std.algorithm.map
Move out Voldemort types to modle level.
2012-07-31 00:30:07 +09:00
jmdavis
c7b4948e40 Added overload for canFind which works with multiple needles. 2012-07-24 00:07:57 -07:00
jmdavis
d283d5735c Move August removals to September.
Several deprecated items were listed for removal in August, but it's
looking likely that 2.060 will come out in August, and I'd prefer not to
have them removed for 2.060 given how many items are already in the
changelog, and they're already deprecated, so it'll only affect people
compiling with -d either way. So, I'm changing the ddoc comments to say
September instead of August. They'll be removed in 2.061.
2012-07-23 23:11:07 -07:00
k-hara
4c4c35c922 Revert "Merge pull request #707 from eco/real-lambdas"
Because of the auto-tester breaking.

This reverts commit d5319fcfb6, reversing
changes made to 5313288dd1.
2012-07-23 14:25:38 +09:00
Brad Anderson
32eb03a983 Switch std.algorithm/.range to lambda syntax
String lambdas are, of course, still supported.
2012-07-21 13:50:26 -06:00
jmdavis
735c2adbda Changes required for issue# 6277. 2012-07-21 01:57:28 -07:00
Don Clugston
399e811eb3 Undo workaround for bug 7898
Undo commit 12a866f03, which was a fix for
7898 [CTFE] std.algorithm:copy fails when used with two arrays.
The workaround is unnecessary now that
8216 CTFE should allow 'pointer is inside range' comparisons
has been implemented in the compiler.
2012-07-18 07:07:36 +02:00
jmdavis
8881a31541 Workaround for bug# 4789 removed.
The "workaround" for bug# 4789 was correct, because it _is_ illegal to
assign overlapping arrays, which assigning a static array to itself
does.
2012-07-11 01:36:58 -07:00
Andrei Alexandrescu
8c747b0aba Merge pull request #655 from jmdavis/string
Fix for issue# 8323.
2012-07-08 20:16:36 -07:00
jmdavis
28781bfb9f Old deprecations which were not properly taken care of previously. 2012-07-07 02:03:49 -07:00
jmdavis
121a69a04b Optimizations for startsWith and endsWith. 2012-07-02 21:55:07 -07:00
Jonathan M Davis
6048cafc58 Merge pull request #612 from jmdavis/min
Fix for issue# 8158.
2012-06-30 19:23:08 -07:00
Andrei Alexandrescu
d7a79d7c9f updated 2012-06-17 15:08:19 -05:00
k-hara
bf1a32fdfc fix Issue 8240 - std.algorithm.joiner and empty inputRangeObject
In this case, _current member is invalid at the start of iteration.
Then joiner should have additional member _valid_current.
2012-06-15 13:23:15 +09:00
Jonathan M Davis
8e37bf3d01 Merge pull request #544 from 9rnsr/fix7878
Issue 7878 - A problem with purity and general templated algorithms
2012-06-04 01:36:51 -07:00
k-hara
1bd9b79e84 fix Issue 8171 - Broken std.algorithm.move for nested struct has no member 2012-05-31 10:38:28 +09:00
jmdavis
adb31e7048 Fix for issue# 8158. 2012-05-29 03:28:17 -07:00
David Simcha
b1e1fa658d Merge pull request #588 from gchatelet/input_range_fill_algorithm
Issue 8112 - std.algorithm.fill must accept InputRange
2012-05-27 20:33:18 -07:00
Guillaume Chatelet
e9dd66f8a0 Issue 8112 - std.algorithm.fill accepts InputRange 2012-05-26 11:17:47 +02:00
k-hara
12a866f036 fix Issue 7898 - [CTFE] std.algorithm:copy fails when used with two arrays 2012-05-26 01:30:16 +09:00
Guillaume Chatelet
0bc122f7d2 std.algorithm.fill must accept InputRange 2012-05-17 18:53:35 +02:00
Lambert
66c886a4f1 Mehrdad's first commit, mainly as a test. Changed filter()'s structure to FilteredRange to give better error messages. 2012-05-11 16:20:26 -07:00
Andrei Alexandrescu
650609be9b Added reference to binary search 2012-05-11 16:39:50 -05:00
k-hara
9d02596a50 Optimize unary move(). 2012-05-09 01:22:13 +09:00
k-hara
af50634ea7 Use endsWith. 2012-05-08 09:45:53 +09:00
k-hara
dc6fb32f87 fix Issue 8057 - std.algorithm.move cannot use for nested struct 2012-05-07 12:33:24 +09:00
k-hara
279963c9d0 fix Issue 8055 - std.algorithm.move corrupts moved object field 2012-05-07 12:05:01 +09:00
jmdavis
2b9d1552b3 Added documentation to undocumented overload of std.algorithm.joiner. 2012-04-28 02:24:02 -07:00