|
|
|
|
|
by mcaruso
311 days ago
|
|
People use method chaining all the time and don't have any issue with it? It's equivalent to something like: $result = $arr
->column('values')
->merge()
->reduce(fn($carry, $item) => $carry + $item, 0)
->repeat('x');
I think this just comes down to familiarity. |
|