time-to-botec

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

repl.txt (544B)


      1 
      2 {{alias}}()
      3     Returns an accumulator function which incrementally updates a count.
      4 
      5     If provided a value, the accumulator function returns an updated count. If
      6     not provided a value, the accumulator function returns the current count.
      7 
      8     Returns
      9     -------
     10     acc: Function
     11         Accumulator function.
     12 
     13     Examples
     14     --------
     15     > var accumulator = {{alias}}();
     16     > var v = accumulator()
     17     0
     18     > v = accumulator( 2.0 )
     19     1
     20     > v = accumulator( -5.0 )
     21     2
     22     > v = accumulator()
     23     2
     24 
     25     See Also
     26     --------
     27