puppetlabs-stdlib/lib/puppet
Joshua Hoblitt 95cf3fed68 (#19272) Add has_element() function
It is exceptionally difficult to determine if an array contains an element matching a specific value without an iteration or loop construct.

This function is the Puppet equivalent of Array.includes?(foo) in Ruby.  The implementation is a verbatim copy of has_key() with the minor modifications needed to support arrays instead of hashes.
2013-02-14 12:06:21 -07:00
..
parser/functions (#19272) Add has_element() function 2013-02-14 12:06:21 -07:00
provider/file_line Add support for a 'match' parameter to file_line 2012-08-14 09:55:30 -07:00
type (#14670) autorequire a file_line resource's path 2012-11-26 10:35:18 -08:00