( array_ops )

凡例
対応コードあり
直接対応していないが代替の書き方あり
対応コードなし
-未確認
( .. )ローカライズまだ
Example Python
pytest
PHP
PHPUnit
Swift
Testing
Csharp
xunit
Bash
bats
Powershell
pester
C++
GoogleTest
JavaScript
Jest
Kotlin
jUnit
( push_item ) append $items[] = $item append - items+=(item) - - - -
( concat ) + array_merge($items1, $items2) - - items=("${items1[@]}" "${items2[@]}") - - - -
( concat_in_place ) extend array_push($items1, ...$items2) - - += - - - -
( plus_equal_extends_items ) Yes No - - Yes - - - -
( pop_item ) pop array_pop($items) - - unset 'items[-1]' - - - -
( clear_without_reassigning ) clear foreach { .. unset } - - - - - - -
( clear_by_reassign ) items = [] $items = [] - - - - - - -
( array_size ) len(items) count($items) - - ${#array[@]} - - - -
( insert_item_by_position ) items.insert(i, v) array_splice($items, $position, 0, $item) - - items=( "${items[@]:0:pos}" item "${items[@]:pos}" ) - - - -
( unshift_item ) insert(0, v) array_unshift($items, $item) - - items=(item "${items[@]}") - - - -
( shift_item ) pop(0) array_shift($items) - - unset 'items[0]' - - - -
( deep_copy ) copy.deepcopy($items) unserialize(serialize($items)) - - - - - - -