product

calculate the product of all values in given list


Parameters

product collection :block :range

Attributes

cartesianreturn the cartesian product of given sublists

Returns

  • :integer
  • :floating

Examples

copy
print product [3 4] ; 12 print product [1 2 4 6] ; 48

copy
print product 1..10 ; 3628800

Related