Accumulator factory: Difference between revisions

m
Line 2,121:
 
=={{header|Nim}}==
Nim being a static typed language, if the accumulator function was created with an integer, it will always return an integer. So, it isn’t possible to mixfulfill integersthe andsecond floatrequirement, at least by using standard types.
 
Three solutions are possible:
:– convert all values to float;
Anonymous user