[Array] product | Manual

[Array] product

Takes the product of an array. On receiving this message, the Array recipient object will calculate the product of its numerical elements.
Usage:


 a := Array ← 2 ; 4 ; 8.
 p := a product. #64

 In the example above, the product of the array will be calculated
 because the array receives the message 'product'. The product of the elements
 ( 2 * 4 * 8 = 64 ) will be stored in p.

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.