diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-05-20 22:35:14 +0200 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2018-05-20 22:39:33 +0200 |
commit | 1de7dce41495a57404cefc6ecf3991c66e30f3ec (patch) | |
tree | 12221939b48b3d4660d752059101c807289141c8 /docs/markdown/Reference-manual.md | |
parent | 195c356f918d9d617ec8705cd459732ff1418650 (diff) | |
download | meson-1de7dce41495a57404cefc6ecf3991c66e30f3ec.zip meson-1de7dce41495a57404cefc6ecf3991c66e30f3ec.tar.gz meson-1de7dce41495a57404cefc6ecf3991c66e30f3ec.tar.bz2 |
dict: Document, add release snippet
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r-- | docs/markdown/Reference-manual.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 2498b98..277353b 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1730,6 +1730,21 @@ The following methods are defined for all [arrays](Syntax.md#arrays): You can also iterate over arrays with the [`foreach` statement](Syntax.md#foreach-statements). +### `dictionary` object + +The following methods are defined for all [dictionaries](Syntax.md#dictionaries): + +- `has_key(key)` returns `true` if the dictionary contains the key + given as argument, `false` otherwise + +- `get(key, fallback)`, returns the value for the key given as first argument + if it is present in the dictionary, or the optional fallback value given + as the second argument. If a single argument was given and the key was not + found, causes a fatal error + +You can also iterate over dictionaries with the [`foreach` +statement](Syntax.md#foreach-statements). + ## Returned objects These are objects returned by the [functions listed above](#functions). |