class EL_NUMERIC_SUM_ACTION
Action to calculate the sum of a list of NUMERIC values
note
description: "Action to calculate the sum of a list of ${NUMERIC} values"
author: "Finnian Reilly"
copyright: "Copyright (c) 2001-2022 Finnian Reilly"
contact: "finnian at eiffel hyphen loop dot com"
license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
date: "2025-04-16 10:59:11 GMT (Wednesday 16th April 2025)"
revision: "1"
class
EL_NUMERIC_SUM_ACTION [G, N -> NUMERIC]
inherit
EL_NUMERIC_ACTION [G, N]
create
make
feature {NONE} -- Initialization
initialize
do
number.set_to_zero
end
feature -- Basic operations
do_with (item: G)
do
number.add (new_value (item))
end
end