示例#1
0
function _coll_in($collection, $in)
{
    $depth = f\drop_last($in);
    if (count($depth)) {
        return f\_coll_depth($collection, $depth);
    }
    return f\to_array($collection);
}
示例#2
0
 /**
  * @dataProvider provideEmptyColl
  */
 public function testEmptyCollection($coll)
 {
     $this->assertSame(array(), f\drop_last($coll));
 }