You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Patrick Spek 95e89dee79
Bump version to 1.0.0
1 year ago
lib/Hash Move Hash::Merge -> Hash::Merge::Augment, new Hash::Merge from Hash::Merge::F 1 year ago
t Move Hash::Merge -> Hash::Merge::Augment, new Hash::Merge from Hash::Merge::F 1 year ago
.gitignore Ignore .precomp 2 years ago
.travis.yml Update Travis config to use rakudo-pkg 1 year ago
CHANGELOG.md Bump version to 1.0.0 1 year ago
LICENSE Add a LICENSE file 1 year ago
META6.json Bump version to 1.0.0 1 year ago
README.md Readme perl6 highlighting 2 years ago

README.md

Build Status

method merge

method merge(
    %b,
    Bool:D :$no-append-array = Bool::False
) returns Mu

Merges a second hash into the hash the method is called on. Hash given as the argument is not modified. Traverses the full tree, replacing items in the original hash with the hash given in the argument. Does not replace positional elements by default, and instead appends the items from the supplied hash’s array to the original hash’s array. The object type of positionals is not retained and instead becomes an Array type. Use :no-append-array to replace arrays and positionals instead, which will also retain the original type and not convert to an Array