Anonymous user
Accumulator factory: Difference between revisions
m
→Customized number type
(Added comment.) |
|||
Line 2,184:
Result of the accumulator function is of type "Number" but will be displayed either as "int" or "float"
according to the actual contents.
This solution fulfills the requirements.
<lang Nim>
type
|