Arquivos
hhvm/hphp/system/php/lang/KeyedIterable.php
T
Drew Paroski de2863dcd0 Add mapWithKey() and filterWithKey() APIs
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
2013-09-05 19:39:50 -07:00

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();
}