Commit graph

416 commits

Author SHA1 Message Date
H. S. Teoh
cd9696a8e8 Add missing signature constraints for splitter.
As well as require bidirectional separator with length before assuming
retro(separator) and separator.length will work.

Without these additional constraints, splitter will cause unhelpful
compile errors about being unable instantiate find, when the separator
is a non-forward input range, or when it doesn't have length, or when
it's non-bidirectional. In the latter case, splitter should still work,
just that it won't export a bidirectional interface.
2013-08-08 06:06:52 -07:00
H. S. Teoh
9fab541993 Fix issue 10773. 2013-08-08 06:06:51 -07:00
monarch dodra
3d7e9b5d21 Merge pull request #1394 from 9rnsr/enforceProp
Supplemental change for dmd/pull/2305
2013-08-05 10:41:17 -07:00
Andrej Mitrovic
dcd065e2e5 Merge pull request #1162 from andralex/5224
Fix Issue 5224 - std.algorithm.remove!(SwapStrategy.unstable) doesn't work
2013-07-30 05:50:27 -07:00
Hara Kenji
e9e43e09ed Merge pull request #1422 from quickfur/filter_docs
Fix issue 10660.
2013-07-21 05:44:49 -07:00
Andrei Alexandrescu
73c8b59bb5 Merge pull request #1412 from Hackerpilot/master
Code cleanup
2013-07-19 15:37:56 -07:00
H. S. Teoh
f071054f17 Fix wrong example in cheatsheet for filter(). 2013-07-19 08:10:01 -07:00
k-hara
edcd51104d Make std.string module CTFEable 2013-07-17 10:09:03 +09:00
k-hara
30356d606f Fix @property annotations and incorrect parenthesis 2013-07-16 00:31:26 +09:00
Hara Kenji
50c7b20959 Merge pull request #1398 from monarchdodra/mapSlice
Better slicing for map
2013-07-15 05:24:06 -07:00
Hackerpilot
6f9c22bfa9 Merge remote-tracking branch 'upstream/master' 2013-07-13 19:37:11 +00:00
Hackerpilot
ae1dcaa3e1 Removed empty declarations. Converted more C-style array declarations to D-style. Removed trailing whitespace 2013-07-13 19:34:37 +00:00
k-hara
05538fe8fc Remove bug 9578 workaround
Because the compiler bug was fixed recently.

---
Revert "Merge pull request #1178 from denis-sh/add-Issue-9578-workaround-to-`std.algorithm.all`"

This reverts commit 8dbfc1a738, reversing
changes made to 93c724f2a3.
2013-07-10 19:54:43 +09:00
monarch dodra
1c9607a256 Better slicing for map
Specifically, slice to end and partial slicing for infinite ranges. Supports ulong indexing on x86 when (underlying range provides it).
2013-07-08 20:05:01 +02:00
monarchdodra
0ac90b1770 make cycle opDollar manifest constant 2013-07-08 20:03:29 +02:00
Hara Kenji
201edf4c80 Merge pull request #1389 from monarchdodra/mapString
Fix Issue 10543 - std.algorithm.map incorrectly uses source range length...
2013-07-06 02:24:39 -07:00
monarch dodra
0a71087600 Fix Issue 10543 - std.algorithm.map incorrectly uses source range length for narrow strings
Strange, because there was an explicit override for strings to forward length.

In any case, this is now fixed.
2013-07-05 14:46:05 +02:00
Hackerpilot
13a6e6ac5c Converted C-style array declarations to D-style 2013-07-03 00:06:32 +00:00
k-hara
03a32d6fa4 Fix issue 313 & 314 2013-06-25 08:38:30 +09:00
Andrei Alexandrescu
3f90290038 Merge pull request #1361 from irritate/issue_10408
Issue 10408 - Fix compile error with multiple-function reduce on a const...
2013-06-22 10:28:30 -07:00
monarch dodra
4d80f9c1a8 Fix save in filter.
filterBidir was actually correct.
2013-06-22 16:42:43 +02:00
irritate
58d403a02d Issue 10408 - Fix compile error with multiple-function reduce on a const range. 2013-06-21 22:54:55 -04:00
irritate
7f000bb980 Remove unnecessary mixin in static assert. 2013-06-18 21:21:36 -04:00
irritate
ebe93db8c1 Issue 10130 - Fix compile error when calling map on iota with const step.
Also fixed the similar issue for iota with const begin/end/step floats.
2013-06-18 20:53:12 -04:00
Andrej Mitrovic
8f5f220194 Fix Issue 10317 - Remove text(range) check and avoid recursive instantiation bug. 2013-06-10 15:12:53 +02:00
Stephan Schiffels
b794fa27ed added any and all to function index and to the cheat sheet 2013-05-29 09:27:23 +01:00
Stephan Schiffels
fe5bbe8df6 fixed lexical ordering of std.algorithm doc index (endsWith, nextPermutation, nextEvenPermutation) and cheat sheet 2013-05-29 08:56:54 +01:00
Andrei Alexandrescu
ae8f014eb7 @blackwhale's destruction 2013-05-26 20:14:13 -04:00
Andrei Alexandrescu
bff9bf231a @blackwhale's review 2013-05-26 15:15:47 -04:00
Andrei Alexandrescu
ac555de3aa Merge branch 'master' of github.com:D-Programming-Language/phobos into 5224 2013-05-26 12:23:28 -04:00
jmdavis
49ad744b12 Removed some undocumented, deprecated functions from std.algorithm.
They were scheduled to be removed in January 2013 but weren't, so
they've been around as undocumented, and deprecated for a while now.
2013-05-05 16:34:25 -07:00
jmdavis
ce1b2294b0 Undocument some deprecated functions.
They were marked for removal in the docs (many of them were intended to
be removed in January), so now they've been removed from the docs and
marked for removal from the code in November.
2013-05-05 16:34:25 -07:00
Vladimir Panteleev
16286c045b DDoc tweaks and fixes 2013-04-18 23:49:06 +00:00
Andrei Alexandrescu
aeaf0caded Fix issue 4909 2013-03-10 22:38:25 -04:00
cjoan
2b67c97066 Use approxEqual for doubles in some examples.
Replaced a few instances of doubles being compared with == in std.algorithm's examples.  They are now compared with approxEqual.  This should encourage better practices, since floating point numbers can experience rounding errors that would make direct equality checks fail in situations where they are expected to work.
2013-03-08 23:53:52 -05:00
cjoan
c45e75a97a Use Lambdas and UFCS in std.algorithm examples.
Better represent Lambda syntax and UFCS in the map/filter/reduce examples in std.algorithm.
2013-03-07 21:55:36 -05:00
Andrei Alexandrescu
29e043d461 Fix Issue 4847 - std.algorithm.topN documentation
Converted unittest into an example.
2013-03-07 13:39:47 -05:00
Alex Rønne Petersen
8dbfc1a738 Merge pull request #1178 from denis-sh/add-Issue-9578-workaround-to-std.algorithm.all
Add Issue 9578 workaround to `std.algorithm.all`
2013-03-06 22:15:37 -08:00
Andrej Mitrovic
337f268cf1 Fixes Issue 9648 - Make import to std.random independent of -unittest switch. 2013-03-05 05:04:32 +01:00
Andrei Alexandrescu
3d5a203323 Fix Issue 4847 - std.algorithm.topN documentation
This was a quick fix so I'm doing it online.
2013-03-04 18:39:42 -05:00
Denis Shelomovskij
b5ca2ef0c9 Add Issue 9578 workaround to std.algorithm.all
As a result `all` can now be used with nested predicates.

Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=9578
2013-02-27 17:56:56 +04:00
Alex Rønne Petersen
707a60101b Merge pull request #1172 from andralex/5924
Fixes Issue 5924
2013-02-25 20:28:06 -08:00
Andrei Alexandrescu
56c47cecbe Issue 5924 fix 2013-02-25 09:52:00 +02:00
jmdavis
2735d30f4e Remove all uses of std.metastrings.Format. 2013-02-24 18:42:46 -08:00
jmdavis
a8f180a7c7 Revert "Merge pull request #1169 from andralex/5924"
This reverts commit 118d9182a9, reversing
changes made to 75f578228c.
2013-02-24 17:14:32 -08:00
Alex Rønne Petersen
5bbd5ef9c2 Merge pull request #1160 from andralex/5106
Fix Issue 5106 - makeIndex should return SortedRange
2013-02-24 16:53:51 -08:00
Alex Rønne Petersen
118d9182a9 Merge pull request #1169 from andralex/5924
Fix Issue 5924 - schwartzSort of Tuple!(char)[]
2013-02-24 16:52:41 -08:00
Alex Rønne Petersen
54ddafa1a8 Merge pull request #1166 from andralex/5507
Fix Issue 5507 - countUntil should take Ranges... instead of R2
2013-02-24 16:50:06 -08:00
Andrei Alexandrescu
48c38ddd2c Issue 5924 fix 2013-02-25 02:13:01 +02:00
Andrei Alexandrescu
7291d2e47d issue 5514 2013-02-25 02:08:04 +02:00