Re: [RFC] Pipe Operator
| From: | lester at lsces dot co dot uk | Date: | Sat, 30 Apr 2016 18:35:38 +0000 |
| Subject: | Re: [RFC] Pipe Operator | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92997@lists.php.net to get a copy of this message | ||
However,
passing an array to array_filter() then passing the result to
array_map() is always type safe (because array_filter still returns an
array even if it filters down to 0 items), and array_map on an empty
array is essentially a no-op, so I'm comfortable doing so, and wish I
could do so more often with less fugly syntax. :-)