| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Although this does not solve the problem of how PHPBench can provide "user functions for the Expression Report Generator...
| ), E_USER_DEPRECATED); | ||
| } | ||
|
|
||
| $baselineExpr = function (string $primaryExpr, string $baselineExpr) { |
There was a problem hiding this comment.
avoiding this would be the usecase here.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR introduces a way to define lambdas in the expression language and allows the definition of user defined functions:
While there is are no "higher order" functions that accept lambdas, this syntax is useful for defining named functions:
{ "expression.user_functions": { "add_one": "(number) => number + 1" } }This is particular useful in report generation to avoid excessive repitition.
TODO: