aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/dict_add.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/markdown/snippets/dict_add.md b/docs/markdown/snippets/dict_add.md
new file mode 100644
index 0000000..cde5b57
--- /dev/null
+++ b/docs/markdown/snippets/dict_add.md
@@ -0,0 +1,10 @@
+## Dictionary addition
+
+Dictionaries can now be added, values from the second dictionary overrides values
+from the first
+
+```meson
+d1 = {'a' : 'b'}
+d3 = d1 + {'a' : 'c'}
+d3 += {'d' : 'e'}
+```