Skip to content

CountableIteratorAggregate

github-actions edited this page Mar 31, 2026 · 2 revisions

  • Full name: \FastForward\Iterator\CountableIteratorAggregate
  • This class implements: IteratorAggregate, Countable
  • This class is an Abstract class

Inherited methods

count

Counts the number of elements in the iterable.

public count(): int

If the inner iterator implements Countable, it uses that. Otherwise, it counts the elements by iterating through them.

Return Value:

the number of elements in the iterable


Clone this wiki locally