puzzle contents
Contents
raw puzzle

Original Problem

Given integer n, find n!.

Example

For n = 5, the output should be
factorial(n) = 120.

Here 1 * 2 * 3 * 4 * 5 = 120.

Input/Output

Solution

_ = factorial = n =>
    n ? n * _(n - 1) : 1