Anonymous user
Accumulator factory: Difference between revisions
m
→{{Fixed accumulator type}}
(Replace existing solution by a more general one and add a solution using a customized number type.) |
|||
Line 2,128:
We provide the code for the two last solutions.
===
<lang Nim>
proc accumulator[T: SomeNumber](x: T): auto =
|