aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-25 22:17:47 +0200
committerPatrick Spek <p.spek@tyil.nl>2017-04-25 22:17:47 +0200
commita2d567952ec1ce7f10dfff67822818c9f5109014 (patch)
tree18d5dbe426425efe18bfe3ae5705f72b95b063aa /README.md
parent7270ba5fe15aa830b32831d7b66045fac6855adc (diff)
parent2600047badfeab82fc98c613b4b5581944bd31e4 (diff)
Merge branch 'master' of github.com:scriptkitties/p6-Hash-Merge
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a83e503
--- /dev/null
+++ b/README.md
@@ -0,0 +1,12 @@
+[![Build Status](https://travis-ci.org/scriptkitties/p6-Hash-Merge.svg?branch=master)](https://travis-ci.org/scriptkitties/p6-Hash-Merge)
+
+### method merge
+
+```perl6
+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