time-to-botec

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

repl.txt (610B)


      1 
      2 {{alias}}( idx )
      3     Returns a function which always returns a specified argument.
      4 
      5     The input argument corresponds to the zero-based index of the argument to
      6     return.
      7 
      8     Parameters
      9     ----------
     10     idx: integer
     11         Argument index to return (zero-based).
     12 
     13     Returns
     14     -------
     15     out: Function
     16         Argument function.
     17 
     18     Examples
     19     --------
     20     > var argn = {{alias}}( 1 );
     21     > var v = argn( 3.14, -3.14, 0.0 )
     22     -3.14
     23     > v = argn( -1.0, -0.0, 1.0 )
     24     -0.0
     25     > v = argn( 'beep', 'boop', 'bop' )
     26     'boop'
     27     > v = argn( 'beep' )
     28     undefined
     29 
     30     See Also
     31     --------
     32