Skip to content

CountableIterator

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

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

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