Task

Create a function that returns the maximum value in a provided set of values,

where the number of values may not be known until run-time.




void main()
{
    import std.algorithm.searching : maxElement;
    import std.stdio : writeln;
 
    [9, 4, 3, 8, 5].maxElement.writeln;
}