Re: put string[] into a appender without loop?

2014-09-24 Thread kiran kumari via Digitalmars-d-learn
On Sunday, 21 September 2014 at 23:41:58 UTC, AsmMan wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string array. Is there a native function or should I write it myself? see more example

Re: put string[] into a appender without loop?

2014-09-22 Thread monarch_dodra via Digitalmars-d-learn
On Sunday, 21 September 2014 at 23:50:50 UTC, H. S. Teoh via Digitalmars-d-learn wrote: On Sun, Sep 21, 2014 at 11:41:56PM +, AsmMan via Digitalmars-d-learn wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string

put string[] into a appender without loop?

2014-09-21 Thread AsmMan via Digitalmars-d-learn
I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string array. Is there a native function or should I write it myself?

Re: put string[] into a appender without loop?

2014-09-21 Thread AsmMan via Digitalmars-d-learn
On Sunday, 21 September 2014 at 23:41:58 UTC, AsmMan wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string array. Is there a native function or should I write it myself? call: auto app = appender!string();

Re: put string[] into a appender without loop?

2014-09-21 Thread ketmar via Digitalmars-d-learn
On Sun, 21 Sep 2014 23:41:56 + AsmMan via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string array. Is there a native function or should I write it

Re: put string[] into a appender without loop?

2014-09-21 Thread ketmar via Digitalmars-d-learn
On Mon, 22 Sep 2014 02:51:41 +0300 ketmar via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: sorry, forgot that. i misunderstood your question. signature.asc Description: PGP signature

Re: put string[] into a appender without loop?

2014-09-21 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 21 September 2014 at 23:48:59 UTC, AsmMan wrote: On Sunday, 21 September 2014 at 23:41:58 UTC, AsmMan wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string array. Is there a native function or should I

Re: put string[] into a appender without loop?

2014-09-21 Thread AsmMan via Digitalmars-d-learn
On Monday, 22 September 2014 at 00:09:22 UTC, Vladimir Panteleev wrote: On Sunday, 21 September 2014 at 23:48:59 UTC, AsmMan wrote: On Sunday, 21 September 2014 at 23:41:58 UTC, AsmMan wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop

Re: put string[] into a appender without loop?

2014-09-21 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 22 September 2014 at 00:18:03 UTC, AsmMan wrote: this give undefined identifier: 'put' error. (std.array is already included, buffer.put(string) doesn't give same error) You need to import std.range. The copy of an array doesn't happen often as string but do suggest to I want

Re: put string[] into a appender without loop?

2014-09-21 Thread AsmMan via Digitalmars-d-learn
On Monday, 22 September 2014 at 00:30:44 UTC, Vladimir Panteleev wrote: On Monday, 22 September 2014 at 00:18:03 UTC, AsmMan wrote: this give undefined identifier: 'put' error. (std.array is already included, buffer.put(string) doesn't give same error) You need to import std.range. Thanks,