X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=doc%2F20-library-reference.md;h=b3ed5b8ded3a485facdc751e04b98e541d068e4b;hb=1314cba61b987fa991e763d56fae83903250176f;hp=6b78192d2f4e2156cfe20f044943bb449544ee9d;hpb=5bd46c2b38f89baa15f5dee55a29edb73fc51a7c;p=icinga2 diff --git a/doc/20-library-reference.md b/doc/20-library-reference.md index 6b78192d2..b3ed5b8de 100644 --- a/doc/20-library-reference.md +++ b/doc/20-library-reference.md @@ -554,6 +554,14 @@ Signature: Sets the element at the zero-based index to the specified value. The `index` must refer to an element which already exists in the array. +### Array#get + +Signature: + + function get(index); + +Retrieves the element at the specified zero-based index. + ### Array#sort Signature: @@ -616,6 +624,15 @@ Signature: Creates or updates an item with the specified `key` and `value`. +### Dictionary#get + +Signature: + + function get(key); + +Retrieves the value for the specified `key`. Returns `null` if they `key` does not exist +in the dictionary. + ## Function type ### Function#call