( dict_elem_access )

凡例
対応コードあり
直接対応していないが代替の書き方あり
対応コードなし
-未確認
( .. )ローカライズまだ
Example Python
pytest
PHP
PHPUnit
Swift
Testing
Csharp
xunit
Bash
bats
Powershell
pester
C++
GoogleTest
JavaScript
Jest
Kotlin
jUnit
( get_value_by_key ) d[k] $d[$k] - - - - d.at(k) - -
( dict_key_not_found ) KeyError returns null, but warning occurs - - - - std::out_of_range - -
( dict_key_exists ) k in d array_key_exists($k, $d) - - - - d.find(k) != d.end() - -
( dict_value_exists ) in_array($v, $d) - - - - - - -
( get_keys ) d.keys() or list(d) array_keys($d) - - - - - - -
( get_values ) d.values() array_values($d) - - - - - - -
( get_key_value_pair ) d.items() - - - - - - -
( set_default_value_and_get ) d.setdefault(k, default) - - - - - - -
( get_value_or_default_value ) d.get(k, default) - - - - - - -
( dict_reverse_lookup ) dict comprehension array_flip - - - - - - -
( composite_key ) use tuple - - - - - - - -