Closed jfroche closed 8 years ago
Just pushed a fix. Do you mind checking of its behavior is consistent with how puppet works (with regards to key collisions) ?
I will look with @PierreR to add a unittest for this one
I copied the unit tests from Puppet and found a regression. This is now fixed.
We have the usecase to merge more than two hash (3 in fact)
can you do the same for 3 hash or even better merge an infine list of PHash ?
ruby implementation is here: https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/merge.rb