lstrojny / functional-php

Primitives for functional programming in PHP
MIT License
1.98k stars 204 forks source link

refactor(drop): Use array functions instead of foreach loop #174

Closed damianopetrungaro closed 6 years ago

phanan commented 6 years ago

What could be the motivation behind the changes? The functions work perfectly as they are currently.

damianopetrungaro commented 6 years ago

I explained it in the first PR I did. It's a more functional approach, and since the repo is called "functional php" it makes more sense to be idiomatic to function programming.

lstrojny commented 6 years ago

See https://github.com/lstrojny/functional-php/pull/171#issuecomment-433900318