Hara Kenji
50c7b20959
Merge pull request #1398 from monarchdodra/mapSlice
...
Better slicing for map
2013-07-15 05:24:06 -07:00
jmdavis
32c3998ebd
Fix for issue# 10474.
2013-07-08 13:36:50 -07:00
monarchdodra
0ac90b1770
make cycle opDollar manifest constant
2013-07-08 20:03:29 +02:00
Andrej Mitrovic
4da1639c98
Merge pull request #1337 from 9rnsr/fix_attrs
...
Potentially @safe & pure formatting
2013-06-27 18:53:22 -07:00
Andrej Mitrovic
4727fdde0b
Fixes Issue 10468 - Remove ref from parameter type in lockstep, which caused a regression.
2013-06-25 00:19:05 +02:00
k-hara
d8d4c1ea41
[formatValue] (pointer)
...
+ Infer attributes in retro range primitives
2013-06-20 10:57:48 +09:00
irritate
5521cca32a
Just call Unqual once after CommonType.
2013-06-18 21:30:45 -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
Brad Anderson
746afc47b8
Fix link to put primitive in std.range docs
2013-05-28 20:39:57 -06:00
David Nadlinger
dc4fe37080
Merge pull request #992 from monarchdodra/chunks
...
Update in chunks
2013-05-27 04:16:23 -07:00
monarch dodra
3e8a8cd887
fix typo in comment
2013-05-27 13:10:43 +02: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
monarch dodra
6f21319029
Update in chunks
...
reduces requirements to ForwardRange
2013-03-27 08:08:55 +01:00
unknown
dd1a80c56f
Fixup for cycle RangeError invocation
...
From: #1183 :
Issue 9612: Cycle opSlice should throw when finish > start
Because a RangeError is not actually customizable, and the first argument is actually the file name. The error was producing:
```
core.exception.RangeError@2 > 1(3836): Range violation
```
Now it produces:
```
core.exception.RangeError@std\range.d(3835): Range violation
```
2013-03-10 22:16:12 +01:00
Brad Anderson
b7d075d555
Cycle opSlice should throw when finish > start
...
Issue 9612
2013-02-27 18:37:23 -07:00
jmdavis
2735d30f4e
Remove all uses of std.metastrings.Format.
2013-02-24 18:42:46 -08:00
Andrej Mitrovic
c0713f1b79
Refactor lockstep and simplify opApply string mixin generator.
2013-02-08 22:57:39 +01:00
Andrei Alexandrescu
e57c8c7393
Merge pull request #1008 from monarchdodra/save
...
Consolidating forward range requirements
2013-02-04 21:03:08 -08:00
monarch dodra
54b151ffdb
Consolidating forward range requirements
...
Because returning anything other than an *exact* type match messes everything up. This is particularly true in the sense that "saved" ranges are usually passed directly to a function, so not cast back to the original.
2013-02-04 18:55:14 +01:00
jmdavis
70dbc120bd
Uncommented stuff that was commented out due to bug 9947.
...
Kenji missed a couple of lines of commented out code in hasSlicing, so
this commit uncomments them now that bug 9947 has been fixed.
2013-02-03 17:10:21 -08:00
Andrei Alexandrescu
a765c38c79
Merge pull request #1109 from 9rnsr/fix8847
...
Enable hasSlicing test which had been blocked by bug 9947
2013-02-03 16:57:16 -08:00
k-hara
6109cb6192
Enable hasSlicing test which had been blocked by bug 9947
2013-02-04 09:34:48 +09:00
Andrej Mitrovic
3625bcb7e8
Fixes Issue 8920 - iota should work with types smaller than int.
2013-02-04 01:14:13 +01:00
Daniel Murphy
41a9f1fa05
Fix Issue 6408 - Phobos fixes
...
Do not use typeof(Type[0]) to get the element type of an array, use typeof(Type.init[0])
2013-01-18 19:10:16 +11:00
jmdavis
9bab8393c3
Made cycle's DollarToken private.
...
There's no reason for anyone to use it directly, so it's better for it
to be private.
2013-01-12 22:51:35 -08:00
Alex Rønne Petersen
c1c7adec0c
Merge pull request #1065 from monarchdodra/repeatSlice
...
Provide slicing for Repeat
2013-01-12 08:50:29 -08:00
Alex Rønne Petersen
fa6131bb29
Merge pull request #1069 from monarchdodra/zipLockstep
...
Const fixes in Zip and Lockstep
2013-01-11 02:46:52 -08:00
jmdavis
1ec00a35d8
Add opSlice to Cycle.
2013-01-11 00:05:16 -08:00
unknown
24164c5e9b
Various fixes in lockstep and zip
...
Mainly, they accepted the types R, provided Unqual!R is a range. But that doesn't make sense.
Reduced to only accepting if R itself is a range.
Improved constraints, fixed implementations, removed needles bug workaround.
2013-01-11 08:31:09 +01:00
unknown
af67984222
Activate bugfix 6336 unittest
2013-01-11 08:31:08 +01:00
monarch dodra
8298d0dfc3
Provide slicing for Repeat
2013-01-10 23:47:47 +01:00
monarch dodra
4fdaafa8a9
Remove back/popBack primitives from Repeat
...
Because a bidirectional infinite range makes no sense. AFAIK.
2013-01-10 13:31:47 +01:00
monarch dodra
273e5821ad
use enum opDollar in Sequence
...
Because an enum is better than a function
2013-01-10 13:29:03 +01:00
monarch dodra
47ab0b3f92
Fix zip for slicing infinite ranges
...
Because the type returned is not the same.
2013-01-10 13:27:47 +01:00
Andrei Alexandrescu
ca44a116d5
Merge pull request #1047 from Poita/bug8367
...
Issue 8367 - Insufficient constraints for chain
2013-01-08 23:07:23 -08:00
Nick Treleaven
5083260795
Fix typos
2013-01-07 17:01:11 +00:00
Vladimir Panteleev
600862c927
Fix mismatched parens in DDoc.
2013-01-06 23:32:52 +02:00
Poita
3731c856c7
Undoing formatting error
2013-01-03 08:52:34 +00:00
Poita
8977fd6ae3
Changed only.Result to static struct
2013-01-03 08:45:46 +00:00
Peter Alexander
fb3a15a33f
Voldemortification of std.range.only
2013-01-03 07:54:40 +00:00
Peter Alexander
483efc7d09
New docs, examples, added asserts for Only!T
2013-01-02 23:11:58 +00:00
Peter Alexander
7101a9c248
Using version(D_NoBoundsCheck) for Only!T
2013-01-02 05:20:38 +00:00
Peter Alexander
51c4f07756
Use RangeError + length optimisation for Only!T
2013-01-02 04:57:04 +00:00
Peter Alexander
1008da752b
Issue 8367 - Insufficient constraints for chain
...
The error message from compiling the bug's sample code after this change is:
```
bug.d(11): Error: template std.range.chain does not match any function template declaration. Candidates are:
std/range.d(2018): std.range.chain(Ranges...)(Ranges rs) if (Ranges.length > 0 && allSatisfy!(isInputRange, staticMap!(Unqual, Ranges)) && !is(CommonType!(staticMap!(ElementType, staticMap!(Unqual, Ranges))) == void))
bug.d(11): Error: template std.range.chain(Ranges...)(Ranges rs) if (Ranges.length > 0 && allSatisfy!(isInputRange, staticMap!(Unqual, Ranges)) && !is(CommonType!(staticMap!(ElementType, staticMap!(Unqual, Ranges))) == void)) cannot deduce template function from argument types !()(MapResult!(__lambda2, Foo[]),string)
```
Fixes Issue 8367
http://d.puremagic.com/issues/show_bug.cgi?id=8367
2013-01-01 21:17:06 +00:00
Peter Alexander
c8cf9197e6
Added std.range.only - range of a single element.
...
This adds range type `Only!T` and helper function `only!T(T)`. This is a range that iterates a single value, useful when some interface requires a range, but you only have a single value.
2013-01-01 20:51:19 +00:00
k-hara
2bbb33df2f
Additional fix for issue 6905
...
For the inference of return value ref-ness, we should use 'auto ref' instead of 'ref' or 'const ref'
2012-12-24 17:48:17 +09:00
unknown
1c58c2d23c
Gives sequence slice to end
2012-12-18 08:11:17 +01:00
Andrei Alexandrescu
af12683895
Merge pull request #854 from jmdavis/hasSlicing
...
Improvements to hasSlicing
2012-12-17 21:38:26 -08:00
k-hara
46b612de08
fix Issue 9060 - std.range.chain and std.range.zip cannot get frame pointer
...
Changes to avoid following two errors:
* "cannot access frame pointer"
* "field xxx must be initialized in constructor, because it is nested struct"
2012-12-18 09:22:24 +09:00