예제 #1
0
 public function testHeadWithCollection()
 {
     $this->assertEquals(1, Fp\head(new Collection([1, 2, 3])));
 }
예제 #2
0
 public function head()
 {
     return Fp\head($this->values());
 }