verse.parser.parser.Reduction

class verse.parser.parser.Reduction(op: ReductionType, expr: expr, it: str, value: AST)

Bases: CustomIR

A simple reduction. Must be a reduction function (see ReductionType) applied to a generator with a single clause over a iterable

Attributes:
end_col_offset
end_lineno

Methods

set_fields

__init__(op: ReductionType, expr: expr, it: str, value: AST) None