Merge pull request #524 from binford2k/docs/intersection_truthiness
Clarify what an empty intersection looks like.
This commit is contained in:
commit
399ce03f68
1 changed files with 3 additions and 3 deletions
|
@ -4,13 +4,13 @@
|
|||
|
||||
module Puppet::Parser::Functions
|
||||
newfunction(:intersection, :type => :rvalue, :doc => <<-EOS
|
||||
This function returns an array an intersection of two.
|
||||
This function returns an array of the intersection of two.
|
||||
|
||||
*Examples:*
|
||||
|
||||
intersection(["a","b","c"],["b","c","d"])
|
||||
intersection(["a","b","c"],["b","c","d"]) # returns ["b","c"]
|
||||
intersection(["a","b","c"],[1,2,3,4]) # returns [] (true, when evaluated as a Boolean)
|
||||
|
||||
Would return: ["b","c"]
|
||||
EOS
|
||||
) do |arguments|
|
||||
|
||||
|
|
Loading…
Reference in a new issue