pub fn factorial(num: u64) -> u64 {
    // Complete this function to return factorial of num
    // Do not use:
    // - return
    // For extra fun don't use:
    // - imperative style loops (for, while)
    // - additional variables
    // For the most fun don't use:
    // - recursion
    // Execute `rustlings hint iterators4` for hints.

    // std/iter/trait.Product.html
    (1..num+1).product()
}
// I don't know how I completed...
I don't know how I completed
I don ' t know how I completed
pub fn factorial(num: u64) -> u64 {
    // Complete this function to return factorial of num
    // Do not use:
    // - return
    // For extra fun don't use:
    // - imperative style loops (for, while)
    // - additional variables
    // For the most fun don't use:
    // - recursion
    // Execute `rustlings hint iterators4` for hints.
    // std/iter/trait.Product.html
    (1..num+1).product()
}
pub fn factorial ( num : u64 ) -> u64 { // Complete this function to return factorial of num // Do not use: // - return // For extra fun don't use: // - imperative style loops (for, while) // - additional variables // For the most fun don't use: // - recursion // Execute `rustlings hint iterators4` for hints. // std/iter/trait.Product.html ( 1 .. num + 1 ) . product ( ) }
I don't know how I completed...
I don ' t know how I completed ...
num
u64
num
u64