95cf3fed68
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. |
||
---|---|---|
.. | ||
parser/functions | ||
provider/file_line | ||
type |