puppetlabs/puppetlabs-stdlib — pull request #140 by amosshapira (2013-03-31 12:50:47+00:00)
Title: Implement any2array

This change is to implement a new function "any2array", which will take any
argument or arguments and create an array which contains it. If the argument
is a single array then it will be returned as-is. If the argument is a single
hash then it will be converted into an array. Otherwise (if there are more than
one argument, or the only argument is not an array or a hash) the function will
return an array containing all the arguments.