From e97f4f7f415a10f174ac50b0aee27b4598a7ff98 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 2 Oct 2021 13:09:18 +0200 Subject: [PATCH] Document _splice function for dictionary --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 40170c2c..25fe7aab 100644 --- a/README.md +++ b/README.md @@ -2373,6 +2373,13 @@ This method is only defined if the type of the element defines a IN\_STR method Return true if both dict 'dict1' and 'dict2' are equal. This method is only defined if the type of the element defines a EQUAL method itself. +##### void name\_splice(name\_t dict1, name\_t dict2) + +Move all items from 'dict2' into 'dict1' and 'dict2' are equal. +If there is the same key between 'dict2' into 'dict1', then their values are added. +Afterward 'dict2' is cleaned. +This method is only defined if the value type defines an ADD method. + ### M-TUPLE