Why are homepage examples too complicated?
Nick Treleaven via Digitalmars-d
digitalmars-d at puremagic.com
Sun Oct 16 09:14:00 PDT 2016
On Sunday, 16 October 2016 at 16:07:19 UTC, Nick Treleaven wrote:
> // Chain functions together to round a string parsed as a real
> number
> alias roundString = pipe!(to!real, std.math.round, to!string);
In fact if we're just printing the rounded numbers, we can drop
to!string and inline roundString. If we want a functional
example, let's keep it separate from the regex stuff.
More information about the Digitalmars-d
mailing list