https://issues.dlang.org/show_bug.cgi?id=4761
greenify changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=4761
Cauterite changed:
What|Removed |Added
CC||cauter...@gmail.com
---
https://issues.dlang.org/show_bug.cgi?id=4761
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=4761
--- Comment #2 from bearophile_h...@eml.cc 2010-09-01 14:35:02 PDT ---
A more general version:
import std.traits: isArray, Unqual;
/// ...
T mul(T)(T items, int times) if(isArray!T) {
alias Unqual!(typeof(items[0])) E; // dangerous?
http://d.puremagic.com/issues/show_bug.cgi?id=4761
--- Comment #1 from bearophile_h...@eml.cc 2010-08-29 15:44:13 PDT ---
This mul() needs more work, to be used on const arrays too. If you are
interested, I may try to write this improvement.
If the given array is one of the string types, it