Talk:Averages/Simple moving average: Difference between revisions

m
(→‎J Implementation: new section)
Line 43:
The outer definition here is a conjunction which takes two arguments: A number (<code>m</code>) and a verb (<code>v</code>). (In the original definition, there was no v and instead that verb was defined in place.) In this outer definition, <code>a=.cocreate<nowiki>''</nowiki></code> defines a new, empty namespace <code>a</code>. Then, <code>n__a=.m#_.</code> populates the name <code>n</code> in that namespace with <code>m</code> NaN values. Finally, we curry the verb <code>v</code> with this namespace and return the derived verb.
 
--[[SpecialUser:Contributions/159.54.131.7Rdm|159.54.131.7Rdm]] 18:0204, 7 June 2010 (UTC)
6,962

edits