time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (708B)


      1 
      2 {{alias}}()
      3     Returns an accumulator function which incrementally computes a minimum
      4     value.
      5 
      6     If provided a value, the accumulator function returns an updated minimum
      7     value. If not provided a value, the accumulator function returns the current
      8     minimum 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     -5.0
     26     > m = accumulator( 10.1 )
     27     -5.0
     28     > m = accumulator()
     29     -5.0
     30 
     31     See Also
     32     --------
     33