On Sunday, 31 May 2015 at 08:02:10 UTC, Ali Çehreli wrote: > auto maxElement(R)(R range) > { > return reduce!((current, a) => current >= a ? current : a) > (ElementType!R.min, range); > } [...] > auto result = numArr.maxElement; Can be shortened to `auto result = numArr.reduce!max`;