time-to-botec

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

repl.txt (512B)


      1 
      2 {{alias}}( val )
      3     Creates a function which always returns the same value.
      4 
      5     Notes:
      6 
      7     - When provided an object reference, the returned `function` always returns
      8       the same reference.
      9 
     10     Parameters
     11     ----------
     12     val: any
     13         Value to always return.
     14 
     15     Returns
     16     -------
     17     out: Function
     18         Constant function.
     19 
     20     Examples
     21     --------
     22     > var fcn = {{alias}}( 3.14 );
     23     > var v = fcn()
     24     3.14
     25     > v = fcn()
     26     3.14
     27     > v = fcn()
     28     3.14
     29 
     30     See Also
     31     --------
     32