Antra

Standardbibliothek

Antra::Enumerable

import Antra::Enumerable

Protokolle#

protocol Enumerable {
    fn __reduce__(self, acc, callback)
    fn __count__(self)
    fn __member__(self, value)
    fn __slice__(self, start, length)
}

Protocol for sequences that can be iterated over.

Implementations provide core reduction and optional metadata operations.

Quelle dieser Seite