Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (16 sloc) 931 Bytes
layout title published tags
default
min
true
reference
data functions
functions
min
inline_json

[%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.

You can’t perform that action at this time.