aggregate
aggregate()
Section titled “aggregate()”Category: Collection
Performs aggregation over a collection using lambda expressions (placeholder implementation)
Signature
Section titled “Signature”- Return type:
any - Parameters:
initialany— Initial value for aggregationexpressionexpression— Lambda expression for aggregation
Examples
Section titled “Examples”(1 | 2 | 3).aggregate($total + $this, 0)