mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
array() should work with input ranges.
This commit is contained in:
parent
203e291864
commit
7d9a0eb0c9
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ auto a = array([1, 2, 3, 4, 5][]);
|
||||||
assert(a == [ 1, 2, 3, 4, 5 ]);
|
assert(a == [ 1, 2, 3, 4, 5 ]);
|
||||||
----
|
----
|
||||||
*/
|
*/
|
||||||
ElementType!Range[] array(Range)(Range r) if (isForwardRange!Range)
|
ElementType!Range[] array(Range)(Range r) if (isInputRange!Range)
|
||||||
{
|
{
|
||||||
alias ElementType!Range E;
|
alias ElementType!Range E;
|
||||||
static if (hasLength!Range)
|
static if (hasLength!Range)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue