pablodip / felpado

Functional Programming for PHP
MIT License
27 stars 4 forks source link

Reduce is wrong #2

Open sergigp opened 9 years ago

sergigp commented 9 years ago
use felpado as f;

f\reduce(function($a){ return $a + 1; }, [], [] })

I think it should return [] instead null