collector

collector

Value consolidation

This module defines Collector, which is a class that collects a sequence of parsed values into a single value.

For example, one may want that the last value for a given parameter overwrites the previous values (Collector.keep_last()), or that all values are returned in a sequence (Collector.append(), Collector.append1()).

Types

This module uses the following types.

_Value

Type of the values to collect

_Item

Item in a sequence

Classes

Collector

Collects argument instances and computes the final value