Cumulative standard deviation: Difference between revisions

Content added Content deleted
(→‎{{header|Perl}}: shorter version with closure)
m (→‎{{header|Perl}}: cosmetic change)
Line 1,316: Line 1,316:
}
}


print stddev($_), "\n" for qw(2 4 4 4 5 5 7 9);</lang>
use feature qw(say);
say stddev $_ for 2, 4, 4, 4, 5, 5, 7, 9;</lang>


{{out}}
{{out}}