Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (19 sloc) 1.04 KB
layout title published tags
default
product
true
reference
data functions
functions
product
inline_json

[%CFEngine_function_prototype(list)%]

Description: Returns the product of the reals in list.

This function might be used for simple ring computation. Of course, you could easily combine product with readstringarray or readreallist etc., to collect summary information from a source external to CFEngine.

[This function can accept many types of data parameters.][Functions#collecting functions]

[%CFEngine_function_attributes(list)%]

Example:

[%CFEngine_include_snippet(product.cf, #+begin_src cfengine3, .*end_src)%]

Output:

[%CFEngine_include_snippet(product.cf, #+begin_src\s+example_output\s*, .*end_src)%]

History: Was introduced in version 3.1.0b1,Nova 2.0.0b1 (2010). The [collecting function][Functions#collecting functions] behavior was added in 3.9.

See also: sort(), variance(), sum(), max(), min(), [about collecting functions][Functions#collecting functions], and data documentation.

You can’t perform that action at this time.