An accumulator is a device or system that stores energy or fluid for later use. In engineering and hydraulics, it typically refers to a pressure vessel that stores hydraulic fluid under pressure, allowing for energy release when needed. In computing, particularly in programming, an accumulator is a variable that aggregates values or results during iterative processes. Its design and function vary widely depending on the context in which it is used.