Methods
hash-get-deep($hash, $keys) → {*|null}
Retrieve a value deeply nested in a hash, defined by a path of keys.
Parameters:
Name | Type | Description |
---|---|---|
$hash |
Hash | the hash to search in |
$keys |
String | List.<String> | the keys to traverse down in the hash |
Returns:
the value at the defined key path or null if not defined
- Type
- * | null
Example
hash-get-deep($foo-hash, 'level1', 'level2')
=> value of $foo-hash.level1.level2