Course of Raku / Functional, concurrent, reactive, and web programming / Functional programming / Reduction / Exercises

Product of a list

Problem

Using the reduce metaoperator, print the product of the numbers from 1 to 6.

Example

The program prints:

720

Solution

See the solution

Course navigation

Solution: Sum a list   |   Solution: Product of a list