Averages/Simple moving average: Difference between revisions

m
→‎{{header|Phix}}: removedf a space
m (→‎{{header|Icon}} and {{header|Unicon}}: Regularize non-standard header markup)
m (→‎{{header|Phix}}: removedf a space)
Line 3,352:
=={{header|Phix}}==
First create a separate file sma.e to encapsulate the private variables. Note in particular the complete lack of any special magic/syntax: it is just a table with some indexes.
<lang Phix>sequence sma = {} -- {{period,history,circnxt}} (private to sma.e)
<lang Phix>
sequence sma = {} -- {{period,history,circnxt}} (private to sma.e)
integer sma_free = 0
 
7,796

edits