On Tuesday, 15 May 2012 at 18:54:51 UTC, dcoder wrote:
Okay thanks alot Matt and Ali, that helps alot, but I still
don't
get the dot in ".map" from the line above. Doesn't the dot mean
that .map is a member or a member function of the return value
of
byLine()? Which, in this case is struct B
On 05/15/2012 11:54 AM, dcoder wrote:
> On Tuesday, 15 May 2012 at 16:03:16 UTC, Matt Soucy wrote:
>>> I'm trying to learn D, by playing with code and reading this forum. I'm
>>> a slow learner. :)
>>>
>>> Anyways, I looked at std.stdio code and noticed that byLine resturns a
>>> struct ByLine, bu
On Tuesday, 15 May 2012 at 16:03:16 UTC, Matt Soucy wrote:
I'm trying to learn D, by playing with code and reading this
forum. I'm
a slow learner. :)
Anyways, I looked at std.stdio code and noticed that byLine
resturns a
struct ByLine, but where does the .map come from? Thanks!
It comes fr
On 05/15/2012 09:03 AM, Matt Soucy wrote:
>>> I believe byLine reuses the internal buffer. Try duping the lines:
>>> auto i = f.byLine().map!"a.idup"().array();
>> Can someone please explain to me the last line?
>>
>> I'm trying to learn D, by playing with code and reading this forum. I'm
>> a sl
On 05/15/2012 10:42 AM, dcoder wrote:
On Monday, 14 May 2012 at 09:00:14 UTC, simendsjo wrote:
On Mon, 14 May 2012 10:41:54 +0200, Christian Köstlin
wrote:
Hi,
i wanted to output an ascii-file line by line, but reversed.
the idea was to open the file, use byLine to read it line-by-line,
make
On Tue, May 15, 2012 at 04:42:39PM +0200, dcoder wrote:
> On Monday, 14 May 2012 at 09:00:14 UTC, simendsjo wrote:
[...]
> >I believe byLine reuses the internal buffer. Try duping the lines:
>
>
>
> > auto i = f.byLine().map!"a.idup"().array();
>
>
> Can someone please explain to me the last
On Monday, 14 May 2012 at 09:00:14 UTC, simendsjo wrote:
On Mon, 14 May 2012 10:41:54 +0200, Christian Köstlin
wrote:
Hi,
i wanted to output an ascii-file line by line, but reversed.
the idea was to open the file, use byLine to read it
line-by-line, make this range an array, and retro this
On 05/14/2012 11:00 AM, simendsjo wrote:
I believe byLine reuses the internal buffer. Try duping the lines:
auto i = f.byLine().map!"a.idup"().array();
Thanks a lot ... that's it!
regards
christian
On Mon, 14 May 2012 10:41:54 +0200, Christian Köstlin
wrote:
Hi,
i wanted to output an ascii-file line by line, but reversed.
the idea was to open the file, use byLine to read it line-by-line, make
this range an array, and retro this array.
But when i convert byLine to an array, the resu