4 ms·
You can adopt some practices from fp when writing PHP. For example often instead of iterating over an array and doing some imperative sequence of modifications
by justinhj 9y ago
You can adopt some practices from fp when writing PHP. For example often instead of iterating over an array and doing some imperative sequence of modifications you can do a sequence of maps, filters and reduce... you replace error prone mutable code with more a declarative approach that says what you are doing clearly.