Function factorial

Source
pub fn factorial(func: Function) -> Function
Expand description

Creates a Function equal to the factorial of the passed Function

i.e f(x) ⟹ f(x)!

Example:

    let x = function::default();
    let factorial_of_x = factorial(x);
    assert_eq!(factorial_of_x.call(4.), 2.);