go on uniq strings

Looks like puppet has some internal representation which
is not comparable.
This commit is contained in:
mh 2010-10-21 01:05:22 +02:00 committed by Micah Anderson
parent 82eed89bcc
commit 218c68752e

View file

@ -6,5 +6,5 @@ Puppet::Parser::Functions::newfunction(
Example: uniq_flatten([['a','b'],'a']) -> ['a','b']"
) do |args|
raise Puppet::ParseError, 'uniq_flatten() needs one arguments' if args.length != 1
args[0].to_a.flatten.uniq
args[0].to_a.flatten.collect(&:to_s).uniq
end