On Saturday, 30 January 2016 at 04:13:09 UTC, Enjoys Math wrote:
I want to use std.algorithm.min/max,how would I apply that to a slice of doubles and not a tuple of args?Thanks.
Oh I got it: import std.algorithm; reduce!(max)(slice); I'ma D wizard!
Enjoys Math via Digitalmars-d-learn Fri, 29 Jan 2016 20:40:30 -0800
On Saturday, 30 January 2016 at 04:13:09 UTC, Enjoys Math wrote:
I want to use std.algorithm.min/max,how would I apply that to a slice of doubles and not a tuple of args?Thanks.
Oh I got it: import std.algorithm; reduce!(max)(slice); I'ma D wizard!