October 13, 2015
On Tuesday 13 October 2015 15:47, Suliman wrote:

> something like: auto content = file.byLine.map!("start " ~ a=>a ~ " end");

That's not how it works at all. Maybe stick to the examples of whatever resource you're learning from, for now.
October 13, 2015
On Tuesday, 13 October 2015 at 13:55:07 UTC, anonymous wrote:
> On Tuesday 13 October 2015 15:47, Suliman wrote:
>
>> something like: auto content = file.byLine.map!("start " ~ a=>a ~ " end");
>
> That's not how it works at all. Maybe stick to the examples of whatever resource you're learning from, for now.

Yes, I understand that it's not work exactly like I try to use it, but which function can solve my problem?
October 13, 2015
On Tuesday, 13 October 2015 at 13:51:50 UTC, anonymous wrote:
> On Tuesday 13 October 2015 15:42, Suliman wrote:
>
>> map!(a=> a~=" +") work fine, but how to add before at same time?
>
> Use ~ instead of ~=, like so: map!(a => "+" ~ a ~ "+")

Thanks!
1 2 3
Next ›   Last »