repl.txt (735B)
1 2 {{alias}}() 3 Returns an accumulator function which incrementally computes a minimum 4 absolute value. 5 6 If provided a value, the accumulator function returns an updated minimum 7 absolute value. If not provided a value, the accumulator function returns 8 the current minimum absolute value. 9 10 If provided `NaN`, the minimum value is `NaN` for all future invocations. 11 12 Returns 13 ------- 14 acc: Function 15 Accumulator function. 16 17 Examples 18 -------- 19 > var accumulator = {{alias}}(); 20 > var m = accumulator() 21 null 22 > m = accumulator( 3.14 ) 23 3.14 24 > m = accumulator( -5.0 ) 25 3.14 26 > m = accumulator( 10.1 ) 27 3.14 28 > m = accumulator() 29 3.14 30 31 See Also 32 -------- 33