time-to-botec

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

repl.txt (514B)


      1 
      2 {{alias}}( fcn )
      3     Returns the name of a function.
      4 
      5     If provided an anonymous function, the function returns an empty `string` or
      6     the string `"anonymous"`.
      7 
      8 
      9     Parameters
     10     ----------
     11     fcn: Function
     12         Input function.
     13 
     14     Returns
     15     -------
     16     out: string
     17         Function name.
     18 
     19     Examples
     20     --------
     21     > var v = {{alias}}( String )
     22     'String'
     23     > v = {{alias}}( function foo(){} )
     24     'foo'
     25     > v = {{alias}}( function(){} )
     26     '' || 'anonymous'
     27 
     28     See Also
     29     --------
     30