Hacker News new | ask | show | jobs
by superasn 2929 days ago
For starters when you're in a for loop it's easy to `break` out of it. Not sure if you can do it in array_map or array_filter.

Secondly and this is a personal preference but the code looks more readable when the for statements are on different lines telling you which array is being iterated compared to the nested functions where the output of one function is piped as input to another.