|
|
|
|
|
by chuck8088
318 days ago
|
|
This article makes a great case WHY the pipe operator is useful, but why didn't they just rewrite those functions to support method chaining?
`
$profit = [1, 4, 5]
.loadSeveral()
.filter(isOnSale())
.map(sellWidget())
.array_sum();
`
this has the side benefit of 'looking normal' |
|