Skip to content

Product

The product of all elements in the collection.

Product(collection)the product of all elements in the collection.

Domain: Collections

Details
  • The empty product is 1 by convention, matching . See Factorial.
  • The product of through is : .
  • Applies across the list's elements (the product of a list).
  • Forces evaluation of a lazy collection like Range, which otherwise stays unevaluated on its own.

Examples

See also: Length