function

sublist

A built-in CFEngine function in the data category that returns a list of strings. sublist is not called from the policy on your hosts.

Signature
sublist(string, option, int)
Parameters
  1. string CFEngine variable identifier or inline JSON (.*)
  2. option Whether to return elements from the head or from the tail of the list (head,tail)
  3. int Maximum number of elements to return (0,99999999999)
Returns
slist
Category
data