Averages/Simple moving average: Difference between revisions

Content added Content deleted
m (Automated syntax highlighting fixup (second round - minor fixes))
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 4,802: Line 4,802:
</pre>
</pre>


=={{header|Vlang}}==
=={{header|V (Vlang)}}==
{{trans|Go}}
{{trans|Go}}
<syntaxhighlight lang="vlang">fn sma(period int) fn(f64) f64 {
<syntaxhighlight lang="v (vlang)">fn sma(period int) fn(f64) f64 {
mut i := int(0)
mut i := int(0)
mut sum := f64(0)
mut sum := f64(0)