layout | title | published |
---|---|---|
default |
min |
true |
[%CFEngine_function_prototype(list, sortmode)%]
Description: Return the minimum of the items in list
according to sortmode
(same sort modes as in sort()
).
[This function can accept many types of data parameters.][Functions#collecting functions]
[%CFEngine_function_attributes(list, sortmode)%]
Example:
[%CFEngine_include_snippet(max-min-mean-variance.cf, #+begin_src cfengine3, .*end_src)%]
Output:
[%CFEngine_include_snippet(max-min-mean-variance.cf, #+begin_src\s+example_output\s*, .*end_src)%]
History: Was introduced in version 3.6.0 (2014). The [collecting function][Functions#collecting functions] behavior was added in 3.9.
See also: sort()
, variance()
, sum()
, max()
, mean()
, [about collecting functions][Functions#collecting functions], and data
documentation.