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