de2863dcd0
This adds mapWithKey() and filterWithKey() APIs to all keyed collections (Vector, Map, and StableMap). These APIs are similar to map() and filter(). The key difference is that these APIs pass both the key and the value to the user callback. Differential Revision: D939972
9 linhas
208 B
PHP
9 linhas
208 B
PHP
<?php
|
|
|
|
interface KeyedIterable extends Iterable, KeyedTraversable {
|
|
public function mapWithKey($callback);
|
|
public function filterWithKey($callback);
|
|
public function keys();
|
|
public function kvzip();
|
|
}
|