Deming's funnel: Difference between revisions

Updated D entry
(→‎Tcl: Added implementation)
(Updated D entry)
Line 24:
<lang d>import std.stdio, std.math, std.algorithm, std.range, std.typecons;
 
auto mean(T)(in T[] xs) pure nothrow /*@nogc*/ {
return xs.sum / xs.length;
}