reading file byLine
Namal via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Sep 4 00:27:52 PDT 2015
On Friday, 4 September 2015 at 01:55:13 UTC, deed wrote:
> On Friday, 4 September 2015 at 01:31:28 UTC, Namal wrote:
>> How can I get just the maximum element? Do I need to give a
>> range for it?
>
> Use max?
> http://dlang.org/phobos/std_algorithm_comparison.html#max
Sorry, I don't understand the syntax yet. How do I tell max to
search all elements? I mean, why does sort(myarray) is legit and
max(myarray) isn't.
More information about the Digitalmars-d-learn
mailing list