Skip to content

aggregate

Category: Collection

Performs aggregation over a collection using lambda expressions (placeholder implementation)

  • Return type: any
  • Parameters:
    • initial any — Initial value for aggregation
    • expression expression — Lambda expression for aggregation
(1 | 2 | 3).aggregate($total + $this, 0)